flux.agent
Class AgentInfo

java.lang.Object
  extended by flux.agent.AgentInfo
All Implemented Interfaces:
java.io.Serializable

public abstract class AgentInfo
extends java.lang.Object
implements java.io.Serializable

Reports the state of an agent.

Author:
Copyright 2014 Flux Corporation. All rights reserved.
See Also:
Serialized Form

Constructor Summary
AgentInfo()
           
 
Method Summary
abstract  AgentConfiguration getConfiguration()
          Returns the configuration properties for this agent.
abstract  java.util.List<AgentResult> getExecutingProcesses()
          Returns the commands that this agent is currently executing, if any.
abstract  AgentResult getLastResult()
          Returns the result of the last execution of a process action on this agent.
abstract  AgentStatus getStatus()
          Indicates the general status of this agent.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgentInfo

public AgentInfo()
Method Detail

getConfiguration

public abstract AgentConfiguration getConfiguration()
Returns the configuration properties for this agent.

Returns:
The configuration properties for this agent.

getExecutingProcesses

public abstract java.util.List<AgentResult> getExecutingProcesses()
Returns the commands that this agent is currently executing, if any. The oldest commands (those that began running farthest in the past) are listed first.

Returns:
The commands that this agent is currently executing, if any. May return an empty list if this agent is not currently running any commands. Does not return null.

getLastResult

public abstract AgentResult getLastResult()
Returns the result of the last execution of a process action on this agent. Returns null if this agent has not executed any process actions yet.

Returns:
The result of the last execution of a process action on this agent. Returns null if this agent has not executed any process actions yet.

getStatus

public abstract AgentStatus getStatus()
Indicates the general status of this agent.

Returns:
The status of this agent.


© 2014 Flux Corporation. All rights reserved.