flux.agent
Class AgentStatus

java.lang.Object
  extended byflux.agent.AgentStatus
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class AgentStatus
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

Indicates the status of a Flux agent. An agent can be busy, free, or stopped.

Author:
Copyright 2000-2008 Flux Corporation. All rights reserved.
See Also:
Serialized Form

Field Summary
static AgentStatus BUSY
          Indicates that a Flux agent is registered with a master Flux engine, is currently executing a process, and cannot be assigned any other processes to execute.
static AgentStatus FREE
          Indicates that a Flux agent is registered with a master Flux engine and is free to be assigned a process to execute.
static AgentStatus STOPPED
          Indicates that a Flux agent is registered with a master Flux engine, is not busy, and is not accepting processes to execute.
static AgentStatus UNREACHABLE
          Indicates that a master Flux engine cannot contact a previously registered Flux agent.
static AgentStatus UNREGISTERED
          Indicates that a Flux agent is not registered with a master Flux engine.
 
Method Summary
 boolean equals(java.lang.Object o)
           
static AgentStatus getInstance(java.lang.String enumeration)
          Returns a pre-existing instance of this enumeration from the specified name.
 int hashCode()
           
 java.lang.String toString()
          Returns a readable version of this object.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

BUSY

public static final AgentStatus BUSY
Indicates that a Flux agent is registered with a master Flux engine, is currently executing a process, and cannot be assigned any other processes to execute.


FREE

public static final AgentStatus FREE
Indicates that a Flux agent is registered with a master Flux engine and is free to be assigned a process to execute.


STOPPED

public static final AgentStatus STOPPED
Indicates that a Flux agent is registered with a master Flux engine, is not busy, and is not accepting processes to execute.


UNREACHABLE

public static final AgentStatus UNREACHABLE
Indicates that a master Flux engine cannot contact a previously registered Flux agent.


UNREGISTERED

public static final AgentStatus UNREGISTERED
Indicates that a Flux agent is not registered with a master Flux engine.

Method Detail

getInstance

public static AgentStatus getInstance(java.lang.String enumeration)
Returns a pre-existing instance of this enumeration from the specified name.

Parameters:
enumeration - The name of a pre-existing instance of this enumeration.
Returns:
A pre-existing instance of this enumeration from the specified name.
Throws:
java.lang.IllegalArgumentException - If the name of the specified enumeration instance does not exist.

toString

public java.lang.String toString()
Returns a readable version of this object.

Returns:
A readable version of this object.

equals

public boolean equals(java.lang.Object o)

hashCode

public int hashCode()


© 2000-2008 Flux Corporation. All rights reserved.