public class CacheMonitor extends Worker implements ICacheMonitor
Worker.WorkContext
ICacheMonitor.Condition, ICacheMonitor.ConditionPolicy
ILifecycle.DeferrableActivation
DEFAULT_ERROR_HANDLER, DEFAULT_TIMEOUT
Constructor and Description |
---|
CacheMonitor() |
Modifier and Type | Method and Description |
---|---|
void |
deregisterCache(ICache cache) |
protected void |
doBeforeActivate() |
protected void |
doDeactivate() |
ICacheMonitor.Condition |
getCondition() |
ICacheMonitor.ConditionPolicy |
getConditionPolicy() |
long |
getPauseGREEN() |
long |
getPauseRED() |
long |
getPauseYELLOW() |
ICacheRegistration[] |
getRegistrations() |
protected void |
handleConditionRED() |
ICacheRegistration |
registerCache(ICache cache) |
protected void |
setCondition(ICacheMonitor.Condition newCondition) |
void |
setConditionPolicy(ICacheMonitor.ConditionPolicy conditionPolicy) |
void |
setPauseGREEN(long pauseGREEN) |
void |
setPauseRED(long pauseRED) |
void |
setPauseYELLOW(long pauseYELLOW) |
protected void |
work(Worker.WorkContext context) |
doActivate, getActivationTimeout, getDeactivationTimeout, getGlobalErrorHandler, getThreadName, handleError, isDaemon, setActivationTimeout, setDaemon, setDeactivationTimeout, setGlobalErrorHandler
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doAfterActivate, doBeforeDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toString
addListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListeners, lastListenerRemoved, removeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addListener, getListeners, hasListeners, removeListener
public long getPauseGREEN()
public void setPauseGREEN(long pauseGREEN)
public long getPauseYELLOW()
public void setPauseYELLOW(long pauseYELLOW)
public long getPauseRED()
public void setPauseRED(long pauseRED)
public ICacheMonitor.ConditionPolicy getConditionPolicy()
getConditionPolicy
in interface ICacheMonitor
public void setConditionPolicy(ICacheMonitor.ConditionPolicy conditionPolicy)
public ICacheMonitor.Condition getCondition()
getCondition
in interface ICacheMonitor
public ICacheRegistration[] getRegistrations()
public ICacheRegistration registerCache(ICache cache)
registerCache
in interface ICacheMonitor
public void deregisterCache(ICache cache)
deregisterCache
in interface ICacheMonitor
protected void doBeforeActivate() throws Exception
doBeforeActivate
in class Lifecycle
Exception
protected void doDeactivate() throws Exception
doDeactivate
in class Worker
Exception
protected void work(Worker.WorkContext context) throws Exception
protected void setCondition(ICacheMonitor.Condition newCondition)
protected void handleConditionRED()
Copyright (c) 2011-2014 Eike Stepper (Berlin, Germany) and others.