
public final class RuntimeService extends Object implements ServiceLifecycle, HasLifecycle, AgentMonitor, ClearAlertHandler
ClearAlertHandler.ClearAlertCode| Constructor and Description |
|---|
RuntimeService(Agent a)
Create an instance of the RuntimeSerice for a given Agent.
|
| Modifier and Type | Method and Description |
|---|---|
void |
build()
First lifecycle hook.
|
ClearAlertHandler.ClearAlertCode |
canClearAlert(Alert alert)
Callback to clear an
Alert instance. |
String |
getAgentMonitorDescription()
Get the description for this AgentMonitor.
|
String |
getAgentMonitorStatus(boolean useCcsBuses)
This method should return the string "OK" if everything is working as
expected.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpreBuild, preInit, preShutdown, preStartinit, postBuild, postInit, postShutdown, postStart, shutdown, startpublic RuntimeService(Agent a)
a - The Agent this Service belongs to.public void build()
HasLifecyclebuild in interface HasLifecyclepublic String getAgentMonitorStatus(boolean useCcsBuses)
AgentMonitorgetAgentMonitorStatus in interface AgentMonitoruseCcsBuses - a boolean to tell if the CCS buses should be used: for
example to raise an Alert. This is true when the method is invoked from
the periodic task. If it's invoked form JMX its value is false.public String getAgentMonitorDescription()
AgentMonitorgetAgentMonitorDescription in interface AgentMonitorpublic 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.