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) |
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.
|
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
|
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 boolean isAgentWorkerOrService()
Copyright © 2018 LSST. All rights reserved.