public class CacheMonitor extends Worker implements ICacheMonitor
Worker.WorkContextICacheMonitor.Condition, ICacheMonitor.ConditionPolicyILifecycle.DeferrableActivationDEFAULT_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, getWorkerThread, handleError, isDaemon, setActivationTimeout, setDaemon, setDeactivationTimeout, setGlobalErrorHandleractivate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doAfterActivate, doBeforeDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toStringaddListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListeners, lastListenerRemoved, removeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddListener, getListeners, hasListeners, removeListenerpublic 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 ICacheMonitorpublic void setConditionPolicy(ICacheMonitor.ConditionPolicy conditionPolicy)
public ICacheMonitor.Condition getCondition()
getCondition in interface ICacheMonitorpublic ICacheRegistration[] getRegistrations()
public ICacheRegistration registerCache(ICache cache)
registerCache in interface ICacheMonitorpublic void deregisterCache(ICache cache)
deregisterCache in interface ICacheMonitorprotected void doBeforeActivate()
throws java.lang.Exception
doBeforeActivate in class Lifecyclejava.lang.Exceptionprotected void doDeactivate()
throws java.lang.Exception
doDeactivate in class Workerjava.lang.Exceptionprotected void work(Worker.WorkContext context) throws java.lang.Exception
protected void setCondition(ICacheMonitor.Condition newCondition)
protected void handleConditionRED()
Copyright (c) 2004-2019 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html