
public class AgentVersionsService extends Object implements AgentService, ServiceLifecycle, HasLifecycle
| Modifier and Type | Class and Description |
|---|---|
class |
AgentVersionsService.VersionCommands |
static class |
AgentVersionsService.VersionConstraint |
| Modifier and Type | Field and Description |
|---|---|
static String |
AGENT |
static String |
DISTRIBUTION |
org.lsst.ccs.utilities.taitime.CCSTimeStamp |
lastPublicationTimeStamp |
static String |
TOOLKIT |
static String |
VERSIONS_KEY |
| Constructor and Description |
|---|
AgentVersionsService() |
| Modifier and Type | Method and Description |
|---|---|
protected Properties |
extractVersionConstraintPropertiesFor(String key,
Properties props) |
String |
getAgentServiceName()
Get the name of this service.
|
Map<String,DistributionInfo> |
getAllDistributionInfo() |
CCSVersions |
getCCSVersions() |
KeyValueData |
getCCSVersionsData() |
void |
preBuild() |
void |
preInit() |
void |
preShutdown() |
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, afterStartbuild, init, postBuild, postInit, postShutdown, postStart, shutdown, startpublic static final String AGENT
public static final String TOOLKIT
public static final String DISTRIBUTION
public static final String VERSIONS_KEY
public volatile org.lsst.ccs.utilities.taitime.CCSTimeStamp lastPublicationTimeStamp
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 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 void preShutdown()
preShutdown in interface ServiceLifecyclepublic CCSVersions getCCSVersions()
public KeyValueData getCCSVersionsData()
protected Properties extractVersionConstraintPropertiesFor(String key, Properties props)
public Map<String,DistributionInfo> getAllDistributionInfo()
Copyright © 2020 LSST. All rights reserved.