public class AgentVersionsService extends Object implements AgentService, ServiceLifecycle, HasLifecycle, AgentPresenceListener
| Modifier and Type | Class and Description |
|---|---|
class |
AgentVersionsService.VersionCommands |
static class |
AgentVersionsService.VersionConstraint |
| Modifier and Type | Field and Description |
|---|---|
static String |
AGENT |
static String |
AGENT_VERSION |
static String |
DISTRIBUTION |
static String |
DISTRIBUTION_VERSION |
static String |
TOOLKIT |
static String |
TOOLKIT_VERSION |
| Constructor and Description |
|---|
AgentVersionsService() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterInit() |
void |
connecting(AgentInfo... agents)
Indicates that the list of agents represented by
agents is present on the
buses. |
void |
disconnected(AgentInfo... agents)
Invoked when one or more agents are disconnected from this cluster, either
because the shutdown or because they were lost.
|
protected Properties |
extractVersionConstraintPropertiesFor(String key,
Properties props) |
String |
getAgentServiceName()
Get the name of this service.
|
Map<String,DistributionInfo> |
getAllDistributionInfo() |
void |
preBuild() |
void |
preInit() |
void |
preShutdown() |
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, afterStart, preStartbuild, init, postBuild, postInit, postShutdown, postStart, shutdown, startconnected, disconnectingpublic static final String AGENT
public static final String TOOLKIT
public static final String DISTRIBUTION
public static final String AGENT_VERSION
public static final String TOOLKIT_VERSION
public static final String DISTRIBUTION_VERSION
public String getAgentServiceName()
AgentServicegetAgentServiceName in interface AgentServicepublic boolean startForAgent(AgentInfo agentInfo)
AgentServicestartForAgent in interface AgentServicepublic void preBuild()
preBuild in interface ServiceLifecyclepublic void preInit()
preInit in interface ServiceLifecyclepublic void afterInit()
afterInit in interface ServiceLifecyclepublic void preShutdown()
preShutdown in interface ServiceLifecyclepublic void connecting(AgentInfo... agents)
AgentPresenceListeneragents is present on the
buses.
This method is invoked when the listener is added with all the agents that
are already connected.
At this point not all services on the connecting agents
are guaranteed to have completely started. This method should be used only
to receive a notification that an agent is connecting.
For a guarantee that an agent information is fully present, please use the
#connected methods.
The implementation should return immediately : any blocking operations
should be scheduled on a separate thread.connecting in interface AgentPresenceListenerpublic void disconnected(AgentInfo... agents)
AgentPresenceListenerdisconnected in interface AgentPresenceListenerprotected Properties extractVersionConstraintPropertiesFor(String key, Properties props)
public Map<String,DistributionInfo> getAllDistributionInfo()
Copyright © 2024 LSST. All rights reserved.