public class AgentHeartBeatService extends Object implements ServiceLifecycle, AgentService, HasLifecycle
| Modifier and Type | Field and Description |
|---|---|
static String |
AGENT_HEARTBEAT_TASK |
| Constructor and Description |
|---|
AgentHeartBeatService() |
| Modifier and Type | Method and Description |
|---|---|
void |
broadcastStatus()
Broadcasts the current heartbeat status.
|
void |
build()
First lifecycle hook.
|
String |
getAgentServiceName()
Get the name of this service.
|
int |
getStatusBroadcastPeriod()
* Returns heartbeat broadcasting period for this
Agent. |
boolean |
isPublishingHeartbeat() |
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, preStartinit, postBuild, postInit, postShutdown, postStart, shutdown, startpublic static final String AGENT_HEARTBEAT_TASK
public String getAgentServiceName()
AgentServicegetAgentServiceName in interface AgentServicepublic boolean startForAgent(AgentInfo agentInfo)
AgentServicestartForAgent in interface AgentServicepublic void build()
HasLifecyclebuild in interface HasLifecyclepublic int getStatusBroadcastPeriod()
Agent.public final void broadcastStatus()
public boolean isPublishingHeartbeat()
Copyright © 2022 LSST. All rights reserved.