com.sun.faban.driver.engine
Enum AgentThread.RunState

java.lang.Object
  extended by java.lang.Enum<AgentThread.RunState>
      extended by com.sun.faban.driver.engine.AgentThread.RunState
All Implemented Interfaces:
Serializable, Comparable<AgentThread.RunState>
Enclosing class:
AgentThread

public static enum AgentThread.RunState
extends Enum<AgentThread.RunState>

The various run states for an AgentThread.

Author:
ncampbell

Enum Constant Summary
ENDED
          The AgentThread has completed.
INITIALIZING
          The AgentThread has initialized.
NOT_STARTED
          The AgentThread thread has not started.
POST_RUN
          The AgentThread is doing a post run.
PRE_RUN
          The AgentThread is executing BenchmarkOperations to warm the SUT.
RUNNING
          The AgentThread is running in steady state.
 
Method Summary
static AgentThread.RunState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AgentThread.RunState[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NOT_STARTED

public static final AgentThread.RunState NOT_STARTED
The AgentThread thread has not started.


INITIALIZING

public static final AgentThread.RunState INITIALIZING
The AgentThread has initialized.


PRE_RUN

public static final AgentThread.RunState PRE_RUN
The AgentThread is executing BenchmarkOperations to warm the SUT.


RUNNING

public static final AgentThread.RunState RUNNING
The AgentThread is running in steady state.


POST_RUN

public static final AgentThread.RunState POST_RUN
The AgentThread is doing a post run.


ENDED

public static final AgentThread.RunState ENDED
The AgentThread has completed.

Method Detail

values

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

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

valueOf

public static AgentThread.RunState valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null