Package org.eclipse.net4j.util.cache
Class CacheMonitor
- java.lang.Object
- 
- org.eclipse.net4j.util.event.Notifier
- 
- org.eclipse.net4j.util.lifecycle.Lifecycle
- 
- org.eclipse.net4j.util.concurrent.Worker
- 
- org.eclipse.net4j.util.cache.CacheMonitor
 
 
 
 
- 
- All Implemented Interfaces:
- ICacheMonitor,- INotifier,- INotifier.INotifier2,- IDeactivateable,- ILifecycle,- ILifecycle.DeferrableActivation
 
 public class CacheMonitor extends Worker implements ICacheMonitor - Author:
- Eike Stepper
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.eclipse.net4j.util.concurrent.WorkerWorker.WorkContext
 - 
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.cache.ICacheMonitorICacheMonitor.Condition, ICacheMonitor.ConditionPolicy
 - 
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycleILifecycle.DeferrableActivation
 - 
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifierINotifier.INotifier2
 
- 
 - 
Field Summary- 
Fields inherited from class org.eclipse.net4j.util.concurrent.WorkerDEFAULT_ERROR_HANDLER, DEFAULT_TIMEOUT
 
- 
 - 
Constructor SummaryConstructors Constructor Description CacheMonitor()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidderegisterCache(ICache cache)protected voiddoBeforeActivate()protected voiddoDeactivate()ICacheMonitor.ConditiongetCondition()ICacheMonitor.ConditionPolicygetConditionPolicy()longgetPauseGREEN()longgetPauseRED()longgetPauseYELLOW()ICacheRegistration[]getRegistrations()protected voidhandleConditionRED()ICacheRegistrationregisterCache(ICache cache)protected voidsetCondition(ICacheMonitor.Condition newCondition)voidsetConditionPolicy(ICacheMonitor.ConditionPolicy conditionPolicy)voidsetPauseGREEN(long pauseGREEN)voidsetPauseRED(long pauseRED)voidsetPauseYELLOW(long pauseYELLOW)protected voidwork(Worker.WorkContext context)- 
Methods inherited from class org.eclipse.net4j.util.concurrent.WorkerdoActivate, getActivationTimeout, getDeactivationTimeout, getGlobalErrorHandler, getThreadName, getWorkerThread, handleError, isDaemon, setActivationTimeout, setDaemon, setDeactivationTimeout, setGlobalErrorHandler
 - 
Methods inherited from class org.eclipse.net4j.util.lifecycle.Lifecycleactivate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doAfterActivate, doBeforeDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toString
 - 
Methods inherited from class org.eclipse.net4j.util.event.NotifieraddListener, addUniqueListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListener, hasListeners, lastListenerRemoved, listenerAdded, listenerRemoved, removeListener
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.eclipse.net4j.util.event.INotifieraddListener, getListeners, hasListeners, removeListener
 
- 
 
- 
- 
- 
Method Detail- 
getPauseGREENpublic long getPauseGREEN() 
 - 
setPauseGREENpublic void setPauseGREEN(long pauseGREEN) 
 - 
getPauseYELLOWpublic long getPauseYELLOW() 
 - 
setPauseYELLOWpublic void setPauseYELLOW(long pauseYELLOW) 
 - 
getPauseREDpublic long getPauseRED() 
 - 
setPauseREDpublic void setPauseRED(long pauseRED) 
 - 
getConditionPolicypublic ICacheMonitor.ConditionPolicy getConditionPolicy() - Specified by:
- getConditionPolicyin interface- ICacheMonitor
 
 - 
setConditionPolicypublic void setConditionPolicy(ICacheMonitor.ConditionPolicy conditionPolicy) 
 - 
getConditionpublic ICacheMonitor.Condition getCondition() - Specified by:
- getConditionin interface- ICacheMonitor
 
 - 
getRegistrationspublic ICacheRegistration[] getRegistrations() 
 - 
registerCachepublic ICacheRegistration registerCache(ICache cache) - Specified by:
- registerCachein interface- ICacheMonitor
 
 - 
deregisterCachepublic void deregisterCache(ICache cache) - Specified by:
- deregisterCachein interface- ICacheMonitor
 
 - 
doBeforeActivateprotected void doBeforeActivate() throws java.lang.Exception- Overrides:
- doBeforeActivatein class- Lifecycle
- Throws:
- java.lang.Exception
 
 - 
doDeactivateprotected void doDeactivate() throws java.lang.Exception- Overrides:
- doDeactivatein class- Worker
- Throws:
- java.lang.Exception
 
 - 
workprotected void work(Worker.WorkContext context) throws java.lang.Exception 
 - 
setConditionprotected void setCondition(ICacheMonitor.Condition newCondition) 
 - 
handleConditionREDprotected void handleConditionRED() 
 
- 
 
-