
public final class RuntimeService extends Object implements ServiceLifecycle, HasLifecycle, AgentMonitor, ClearAlertHandler, AgentService
ClearAlertHandler.ClearAlertCode| Constructor and Description |
|---|
RuntimeService() |
| 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.
|
String |
getAgentServiceName()
Get the name of this service.
|
boolean |
startForAgent(AgentInfo agentInfo)
This method is invoked after an agent service is created to see if
this service is to be started for the tiven Agent.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpreBuild, preInit, preShutdown, preStartinit, postBuild, postInit, postShutdown, postStart, shutdown, startpublic String getAgentServiceName()
AgentServicegetAgentServiceName in interface AgentServicepublic boolean startForAgent(AgentInfo agentInfo)
AgentServicestartForAgent in interface AgentServicepublic 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.