public class AgentPropertiesService extends Object implements ServiceLifecycle, AgentService
setAgentProperty method either in the
HasLifecycle::build or HasLifecycle::init phases.
* via bootstrap properties. These properties must precede the name of
the property to be set with org.lsst.ccs.subsystem.agent.property.
Properties set via the bootstrap method will override any agent property set
programmatically.| Modifier and Type | Class and Description |
|---|---|
class |
AgentPropertiesService.AgentPropertiesServiceCommands |
| Constructor and Description |
|---|
AgentPropertiesService() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterInit() |
Properties |
getAgentProperties()
Get the agent properties.
|
Set |
getAgentPropertiesKeySet()
Get the Set of agent properties.
|
String |
getAgentProperty(String property)
Get an agent property.
|
String |
getAgentServiceName()
Get the name of this service.
|
static Properties |
getDynamicAgentProperties() |
void |
preBuild() |
void |
preInit() |
void |
setAgentProperty(String property,
String value) |
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, preShutdown, preStartpublic boolean startForAgent(AgentInfo agentInfo)
AgentServicestartForAgent in interface AgentServicepublic static Properties getDynamicAgentProperties()
public String getAgentServiceName()
AgentServicegetAgentServiceName in interface AgentServicepublic void preBuild()
preBuild in interface ServiceLifecyclepublic void preInit()
preInit in interface ServiceLifecyclepublic void afterInit()
afterInit in interface ServiceLifecyclepublic String getAgentProperty(String property)
property - The property name.public Set getAgentPropertiesKeySet()
public Properties getAgentProperties()
Copyright © 2023 LSST. All rights reserved.