public abstract class AgentEvent
extends java.lang.Object
ObservableAgent
interface and can send an AgentEvent
to every
AgentObserver
that observes this class.Constructor and Description |
---|
AgentEvent(java.lang.String clusterId,
java.lang.String agentId,
java.util.Date timestamp)
Constructs an instance of this class.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAgentId() |
java.lang.String |
getClusterId() |
java.util.Date |
getTimestamp() |
java.lang.String |
toString() |
public AgentEvent(java.lang.String clusterId, java.lang.String agentId, java.util.Date timestamp)
clusterId
- The id of the cluster the AgentEndpoint
subclass sending the UpdateEvent is running in.agentId
- The id of the AgentEndpoint
subclass sending the UpdateEvent.timestamp
- The time at which this event occurredpublic java.lang.String getAgentId()
public java.util.Date getTimestamp()
public java.lang.String getClusterId()
public java.lang.String toString()
toString
in class java.lang.Object