public final class AgentInfo extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
AgentInfo.AgentType
Enumeration of known agent types.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
AGENT_JXM_PORT_PROP |
static String |
AGENT_NAME_PROP |
static String |
AGENT_TYPE_PROP |
| Constructor and Description |
|---|
AgentInfo(String name,
AgentInfo.AgentType type)
The base constructor of an AgentInfo.
|
AgentInfo(String name,
AgentInfo.AgentType type,
Properties agentProps)
The base constructor of an AgentInfo.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object a) |
org.lsst.ccs.utilities.taitime.CCSTimeStamp |
getAgentJoinedTheBusesTime()
Get the time the Agent joined the buses.
|
org.lsst.ccs.utilities.taitime.CCSTimeStamp |
getAgentOperationalTime()
Get the time the Agent went operational.
|
Properties |
getAgentProperties()
Get the Properties for this AgentInfo.
|
String |
getAgentProperty(String property)
Get the value of the property for this Agent.
|
String |
getAgentProperty(String property,
String def)
Get the value of the property for this Agent.
|
org.lsst.ccs.utilities.taitime.CCSTimeStamp |
getAgentStartTime()
Get the CCSTimeStamp corresponding to the time this Agent
was started.
|
String |
getName()
The Agent's name on the Buses.
|
AgentInfo.AgentType |
getType()
The Agent's AgentType.
|
boolean |
hasAgentProperty(String property)
Check if a given property is set for this Agent.
|
int |
hashCode() |
boolean |
isAgentWorkerOrService()
Utility method to decide this AgentInfo belongs to a WORKER or a Service
agent
|
boolean |
isGraphicalConsole()
Return true if this is a graphical console;
|
boolean |
isScriptingConsole()
Return true if this is a scripting console.
|
void |
setAgentJoinedTheBusesTime()
Public method to set the time the Agent became Joined The Buses.
|
void |
setAgentOperationalTime()
Public method to set the time the Agent became OPERATIONAL.
|
String |
toString() |
public static final String AGENT_NAME_PROP
public static final String AGENT_TYPE_PROP
public static final String AGENT_JXM_PORT_PROP
public AgentInfo(String name, AgentInfo.AgentType type)
name - The name of the Agent as defined on the Buses.type - The AgentType of the Agent. This determines its role.public AgentInfo(String name, AgentInfo.AgentType type, Properties agentProps)
name - The name of the Agent as defined on the Buses.type - The AgentType of the Agent. This determines its role.agentProps - A set of properties for this agent.public String getName()
public AgentInfo.AgentType getType()
public String getAgentProperty(String property)
property - The name of the property to retrieve.public String getAgentProperty(String property, String def)
property - The name of the property to retrieve.def - The default value to return.public boolean hasAgentProperty(String property)
property - The name of the property to check.public Properties getAgentProperties()
public org.lsst.ccs.utilities.taitime.CCSTimeStamp getAgentStartTime()
public final void setAgentOperationalTime()
public final org.lsst.ccs.utilities.taitime.CCSTimeStamp getAgentOperationalTime()
public final void setAgentJoinedTheBusesTime()
public final org.lsst.ccs.utilities.taitime.CCSTimeStamp getAgentJoinedTheBusesTime()
public boolean isAgentWorkerOrService()
public boolean isScriptingConsole()
public boolean isGraphicalConsole()
Copyright © 2020 LSST. All rights reserved.