public final class RuntimeService extends Object implements ServiceLifecycle, HasLifecycle, AgentMonitor, AgentService
| Constructor and Description |
|---|
RuntimeService() |
| Modifier and Type | Method and Description |
|---|---|
void |
build()
First lifecycle hook.
|
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.
|
void |
init()
Called from the enclosing
Subsystem at initialization
phase. |
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, waitafterBuild, afterInit, afterStart, preBuild, preInit, preShutdown, preStartpostBuild, 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 void init()
HasLifecycleSubsystem at initialization
phase.
This method is called before the children components of this
object have their init method called.
At the time it is called, connection to the messaging layer is not yet
done, so there should be no attempt to send messages in the body of
this method. Configuration for message listening can nevertheless be
done here, such as adding MessageListener
objects.
It is unnecessary to call super.init()
init 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 AgentMonitorCopyright © 2023 LSST. All rights reserved.