
public class AgentMonitorService extends Object implements AgentMonitorServiceMBean, Runnable, HasLifecycle, AgentService
| Modifier and Type | Field and Description |
|---|---|
static String |
AGENT_MONITOR_SERVICE_TASK |
| Constructor and Description |
|---|
AgentMonitorService() |
| Modifier and Type | Method and Description |
|---|---|
void |
build()
First lifecycle hook.
|
String |
getAgentServiceName()
Get the name of this service.
|
String |
getAgentStatus()
Get the status of the current Agent.
|
void |
postInit()
Called from the enclosing
Subsystem at construction
phase. |
void |
run() |
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, waitinit, postBuild, postShutdown, postStart, shutdown, startpublic static final String AGENT_MONITOR_SERVICE_TASK
public String getAgentServiceName()
AgentServicegetAgentServiceName in interface AgentServicepublic boolean startForAgent(AgentInfo agentInfo)
AgentServicestartForAgent in interface AgentServicepublic void build()
HasLifecyclebuild in interface HasLifecyclepublic 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 getAgentStatus()
getAgentStatus in interface AgentMonitorServiceMBeanCopyright © 2020 LSST. All rights reserved.