
public class CheckAgentStatusService extends Object implements CheckAgentStatusServiceMBean, Runnable, ClearAlertHandler, HasLifecycle
ClearAlertHandler.ClearAlertCode| Constructor and Description |
|---|
CheckAgentStatusService(Agent a) |
| Modifier and Type | Method and Description |
|---|---|
ClearAlertHandler.ClearAlertCode |
canClearAlert(Alert alert)
Callback to clear an
Alert instance. |
String |
getStatus() |
String |
getStatusDescription() |
void |
postInit()
Called from the enclosing
Subsystem at construction
phase. |
void |
run() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuild, init, postBuild, postShutdown, postStart, postStop, start, stoppublic CheckAgentStatusService(Agent a)
public void postInit()
HasLifecycleSubsystem at construction
phase. This method is called after init and postInit have
been called on this component's children.postInit in interface HasLifecyclepublic String getStatus()
getStatus in interface CheckAgentStatusServiceMBeanpublic String getStatusDescription()
getStatusDescription in interface CheckAgentStatusServiceMBeanpublic ClearAlertHandler.ClearAlertCode canClearAlert(Alert alert)
ClearAlertHandlerAlert instance.
Return true/false if the Alert can be cleared.
When true is returned the Alert is cleared and no more handlers will
be checked. When false is returned other handlers will be handed the Alert
instance to be cleared. If no handler returns true, the Alert will not be
cleared.canClearAlert in interface ClearAlertHandleralert - The Alert instance to clear.Copyright © 2018 LSST. All rights reserved.