Class AgentStateUpdate

java.lang.Object
org.opencastproject.capture.admin.api.AgentStateUpdate

public class AgentStateUpdate extends Object
A representation of an agent which stores its name, state and time-since-last-update value.
  • Constructor Details

    • AgentStateUpdate

      public AgentStateUpdate()
      Required zero-arg. constructor. Do not use.
    • AgentStateUpdate

      public AgentStateUpdate(Agent a)
      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

      public String getName()
      Returns the agent name.
      Returns:
      the name
    • getUrl

      public String getUrl()
      Returns the agent url.
      Returns:
      the url
    • getState

      public String getState()
      Returns the agent state.
      Returns:
      the state
    • getCapabilities

      public Properties getCapabilities()
      Returns the agent capabilities.
      Returns:
      the capabilities
    • getTimeSinceLastUpdate

      public Long getTimeSinceLastUpdate()
      Returns the time when the agent was last seen online.
      Returns:
      the time of the last update