public class ExecutionContext extends java.lang.Object implements IExecutionContext
Constructor and Description |
---|
ExecutionContext(java.lang.String agentId, java.util.Map properties)
Constructor that initialises the object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAgentID()
Method to get the Agent ID.
|
java.util.Map<java.lang.String,java.lang.Object> |
getAllProperties()
Method to get all the properties as a ky value pair.
|
java.lang.Object |
getProperty(java.lang.String propName)
Method to get the property value for a key in argument.
|
java.util.Set |
getPropertyNames()
Method to get an Iterator over the list of properties available.
|
void |
setProperty(java.lang.String propName, java.lang.Object propValue)
Method to test if a certain property is available in the list of properties.
|
public ExecutionContext(java.lang.String agentId, java.util.Map properties)
properties
- Object of type properties, the properties are read from the configuration and passed to this class by the agent framework, during initialisation.agentId
- The agent Id, as set in the configuration file.public java.lang.String getAgentID()
public java.lang.Object getProperty(java.lang.String propName)
getProperty
in interface IExecutionContext
propName
- The property name, whose value needs to be retrived.public void setProperty(java.lang.String propName, java.lang.Object propValue)
IExecutionContext
setProperty
in interface IExecutionContext
propName
- Property name to test for.public java.util.Set getPropertyNames()
IExecutionContext
getPropertyNames
in interface IExecutionContext
public java.util.Map<java.lang.String,java.lang.Object> getAllProperties()
getAllProperties
in interface IExecutionContext