public class ExecutionContext extends Object implements IExecutionContext
Constructor and Description |
---|
ExecutionContext(String agentId, Map properties)
Constructor that initialises the object.
|
Modifier and Type | Method and Description |
---|---|
String |
getAgentID()
Method to get the Agent ID.
|
Map<String,Object> |
getAllProperties()
Method to get all the properties as a ky value pair.
|
Object |
getProperty(String propName)
Method to get the property value for a key in argument.
|
Set |
getPropertyNames()
Method to get an Iterator over the list of properties available.
|
void |
setProperty(String propName, Object propValue)
Method to test if a certain property is available in the list of properties.
|
public ExecutionContext(String agentId, 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 String getAgentID()
public Object getProperty(String propName)
getProperty
in interface IExecutionContext
propName
- The property name, whose value needs to be retrived.public void setProperty(String propName, Object propValue)
IExecutionContext
setProperty
in interface IExecutionContext
propName
- Property name to test for.public Set getPropertyNames()
IExecutionContext
getPropertyNames
in interface IExecutionContext
public Map<String,Object> getAllProperties()
getAllProperties
in interface IExecutionContext