com.waveset.object
Class TaskState

java.lang.Object
  extended bycom.waveset.object.TaskState

public class TaskState
extends java.lang.Object

An "enumeration" of constants used to indicate the state of a background task.


Field Summary
static java.lang.String code_id
           
static TaskState EXECUTING
          Indicates that the task is currently executing on some machine.
static TaskState EXTENDED
          An extended task state used for passing messages to tasks.
static TaskState FINISHED
          Indicates that the task has finished execution.
static TaskState[] ITEMS
           
static TaskState READY
          Indicates that the task is ready for execution.
static TaskState SCHEDULED
          Indicates that the task is scheduled for future or repetative execution.
static TaskState SUSPENDED
          Indicates that the task is suspended.
 
Method Summary
static TaskState fromString(java.lang.String name)
           
 java.lang.String getDisplayNameKey()
           
static java.lang.String getDisplayNameKey(java.lang.String name)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

code_id

public static final java.lang.String code_id
See Also:
Constant Field Values

READY

public static final TaskState READY
Indicates that the task is ready for execution. The task scheduler will periodically look for tasks in the ready state and try to execute them.


EXECUTING

public static final TaskState EXECUTING
Indicates that the task is currently executing on some machine.


SUSPENDED

public static final TaskState SUSPENDED
Indicates that the task is suspended. The scheduler will ignore tasks in this state.


FINISHED

public static final TaskState FINISHED
Indicates that the task has finished execution.


SCHEDULED

public static final TaskState SCHEDULED
Indicates that the task is scheduled for future or repetative execution. You won't actually see any TaskInstance objects in this state, but its used in an API calls to the task scheduler to request changes to various cycle times. It doesn't really belong here, but there isn't another convenient place for it.


EXTENDED

public static final TaskState EXTENDED
An extended task state used for passing messages to tasks. This should never be a valid state for a task, only for a task event


ITEMS

public static final TaskState[] ITEMS
Method Detail

toString

public java.lang.String toString()

fromString

public static TaskState fromString(java.lang.String name)

getDisplayNameKey

public java.lang.String getDisplayNameKey()

getDisplayNameKey

public static java.lang.String getDisplayNameKey(java.lang.String name)