public class MessagingService extends Object implements AgentService, ServiceLifecycle, Dispatcher.Listener
| Constructor and Description |
|---|
MessagingService() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterBuild() |
String |
getAgentServiceName()
Get the name of this service.
|
AgentMessagingLayer |
getMessagingAccess()
Returns
AgentMessagingLayer used by this Agent. |
boolean |
isConnectedToTheBuses()
Returns
true once the Agent has been connected to the buses. |
void |
onEvent(Dispatcher.Event event) |
void |
preBuild() |
void |
preStart()
Called from the enclosing
Subsystem when
org.lsst.ccs.Subsystem#start() has been called. |
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, waitafterInit, afterStart, preInit, preShutdownpublic String getAgentServiceName()
AgentServicegetAgentServiceName in interface AgentServicepublic boolean startForAgent(AgentInfo agentInfo)
AgentServicestartForAgent in interface AgentServicepublic void preBuild()
preBuild in interface ServiceLifecyclepublic void afterBuild()
afterBuild in interface ServiceLifecyclepublic void preStart()
ServiceLifecycleSubsystem when
org.lsst.ccs.Subsystem#start() has been called.
The preceding lifecycle step is HasLifecycle.postInit()
The following lifecycle step is HasLifecycle.start()
At the time it is called :
PhaseState is
INITIALIZING
connection with the messaging layer is effective, the enclosing
subsystem has started StatusHeartBeat
publication
preStart in interface ServiceLifecyclepublic AgentMessagingLayer getMessagingAccess()
AgentMessagingLayer used by this Agent. The
returned instance is used by the Agent internally, and can also
be used by the client code to publish messages on the buses.AgentMessagingLayer used by this Agentpublic boolean isConnectedToTheBuses()
true once the Agent has been connected to the buses.public void onEvent(Dispatcher.Event event)
onEvent in interface Dispatcher.ListenerCopyright © 2022 LSST. All rights reserved.