com.sun.btrace.api
Enum BTraceTask.State

java.lang.Object
  extended by java.lang.Enum<BTraceTask.State>
      extended by com.sun.btrace.api.BTraceTask.State
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<BTraceTask.State>
Enclosing class:
BTraceTask

public static enum BTraceTask.State
extends java.lang.Enum<BTraceTask.State>

This enum represents the allowed states of the tracing task


Enum Constant Summary
ACCEPTED
          The BTrace agent has accepted the script
COMPILED
          The task script has just been compiled
COMPILING
          Indicates that the BTrace compiler has started compiling
FAILED
           
FINISHED
          Indicates an inactive task
INSTRUMENTING
          The BTrace agent is going to instrument appropriate classes
NEW
          This is the state of a newly created task
RUNNING
          All instrumentation and initialization is done; task is running
STARTING
          The task becomes STARTING immediately after calling its start()method
 
Method Summary
static BTraceTask.State valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static BTraceTask.State[] 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

NEW

public static final BTraceTask.State NEW
This is the state of a newly created task


STARTING

public static final BTraceTask.State STARTING
The task becomes STARTING immediately after calling its start()method


COMPILING

public static final BTraceTask.State COMPILING
Indicates that the BTrace compiler has started compiling


COMPILED

public static final BTraceTask.State COMPILED
The task script has just been compiled


ACCEPTED

public static final BTraceTask.State ACCEPTED
The BTrace agent has accepted the script


INSTRUMENTING

public static final BTraceTask.State INSTRUMENTING
The BTrace agent is going to instrument appropriate classes


RUNNING

public static final BTraceTask.State RUNNING
All instrumentation and initialization is done; task is running


FINISHED

public static final BTraceTask.State FINISHED
Indicates an inactive task


FAILED

public static final BTraceTask.State FAILED
Method Detail

values

public static BTraceTask.State[] 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 (BTraceTask.State c : BTraceTask.State.values())
    System.out.println(c);

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

valueOf

public static BTraceTask.State 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
java.lang.NullPointerException - if the argument is null