g-Eclipse
Release 1.0.0

eu.geclipse.batch
Enum IWorkerNodeInfo.WorkerNodeState

java.lang.Object
  extended by java.lang.Enum<IWorkerNodeInfo.WorkerNodeState>
      extended by eu.geclipse.batch.IWorkerNodeInfo.WorkerNodeState
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<IWorkerNodeInfo.WorkerNodeState>
Enclosing interface:
IWorkerNodeInfo

public static enum IWorkerNodeInfo.WorkerNodeState
extends java.lang.Enum<IWorkerNodeInfo.WorkerNodeState>

This field determines the type of the state of this WorkerNode.


Enum Constant Summary
busy
          The worker node currently have a job execution on it and are busy.
down
          The worker node is down, i.e. no contact with this workernode.
free
          The worker node is free.
job_exclusive
          The worker node currently have a job execution on it.
offline
          The batch service have set this worker node to offline.
unknown
          The state of the worker node is unknown at this time.
 
Method Summary
 java.lang.String toString()
           
static IWorkerNodeInfo.WorkerNodeState valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static IWorkerNodeInfo.WorkerNodeState valueOfEnhanced(java.lang.String val)
          Due to the prohibition of - in enum identifiers, this method was added.
static IWorkerNodeInfo.WorkerNodeState[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

free

public static final IWorkerNodeInfo.WorkerNodeState free
The worker node is free.


down

public static final IWorkerNodeInfo.WorkerNodeState down
The worker node is down, i.e. no contact with this workernode.


offline

public static final IWorkerNodeInfo.WorkerNodeState offline
The batch service have set this worker node to offline.


job_exclusive

public static final IWorkerNodeInfo.WorkerNodeState job_exclusive
The worker node currently have a job execution on it.


busy

public static final IWorkerNodeInfo.WorkerNodeState busy
The worker node currently have a job execution on it and are busy.


unknown

public static final IWorkerNodeInfo.WorkerNodeState unknown
The state of the worker node is unknown at this time.

Method Detail

values

public static final IWorkerNodeInfo.WorkerNodeState[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(IWorkerNodeInfo.WorkerNodeState c : IWorkerNodeInfo.WorkerNodeState.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static IWorkerNodeInfo.WorkerNodeState valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<IWorkerNodeInfo.WorkerNodeState>

valueOfEnhanced

public static IWorkerNodeInfo.WorkerNodeState valueOfEnhanced(java.lang.String val)
Due to the prohibition of - in enum identifiers, this method was added.

Parameters:
val - The String value to be "matched" to a enum identifier.
Returns:
The enum identifier for the incoming string.

g-Eclipse
Release 1.0.0