public interface Agent
Agent defines the interface with the basic functionality needed to act as an agent in a Powermatcher cluster.| Modifier and Type | Interface and Description |
|---|---|
static interface |
Agent.Status
The
Agent.Status object describes the current connection status of an Agent. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAgentId() |
Agent.Status |
getStatus() |
void |
setContext(org.flexiblepower.context.FlexiblePowerContext context)
Give the agent a reference to a
FlexiblePowerContext. |
java.lang.String getAgentId()
Agent.Agent.Status getStatus()
Agent.Status of the Agent. This returns a snapshot of the state that won't change.
If used at a later time, the snapshot should be refreshed.void setContext(org.flexiblepower.context.FlexiblePowerContext context)
FlexiblePowerContext. This should be done by the runtime bundle after the
component is activated.context - reference to the FlexiblePowerContext