Class AgentStateUpdate
java.lang.Object
org.opencastproject.capture.admin.api.AgentStateUpdate
A representation of an agent which stores its name, state and time-since-last-update value.
-
Constructor Summary
ConstructorsConstructorDescriptionRequired zero-arg. constructor.Builds an AgentStateUpdate object about the Agent a. -
Method Summary
-
Constructor Details
-
AgentStateUpdate
public AgentStateUpdate()Required zero-arg. constructor. Do not use. -
AgentStateUpdate
Builds an AgentStateUpdate object about the Agent a. This calculates the time delta for you.- Parameters:
a- The agent you wish to know more information about.
-
-
Method Details
-
getName
Returns the agent name.- Returns:
- the name
-
getUrl
Returns the agent url.- Returns:
- the url
-
getState
Returns the agent state.- Returns:
- the state
-
getCapabilities
Returns the agent capabilities.- Returns:
- the capabilities
-
getTimeSinceLastUpdate
Returns the time when the agent was last seen online.- Returns:
- the time of the last update
-