com.waveset.object
Class TaskSchedule.ResultOption

java.lang.Object
  extended bycom.waveset.object.TaskSchedule.ResultOption
Enclosing class:
TaskSchedule

public static class TaskSchedule.ResultOption
extends java.lang.Object

An enumeration class used for values of the _resultOption field, used to specify how the results of prior executions of repetative tasks are handled.

Since results are stored as TaskInstance objects with the name specified in the TaskSchedule object, we can't launch a new task without first freeing up the name. These are the options.


Field Summary
static TaskSchedule.ResultOption DELETE
          Automatically deletes old results before executing the task.
static TaskSchedule.ResultOption[] ITEMS
           
static TaskSchedule.ResultOption RENAME
          Renames old results before executing the task.
static TaskSchedule.ResultOption TERMINATE
          Terminates and deletes any currently executing task.
static TaskSchedule.ResultOption WAIT
          Prevents the task from being run until the old result is manualy deleted or expires.
 
Method Summary
static TaskSchedule.ResultOption fromString(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

WAIT

public static final TaskSchedule.ResultOption WAIT
Prevents the task from being run until the old result is manualy deleted or expires.

If this is a non-scheduled task, it will result in an error at the time it is launched. If this is a scheduled task, the scheduler simply ignores it.


DELETE

public static final TaskSchedule.ResultOption DELETE
Automatically deletes old results before executing the task. The old tasks must be in a finished state.


RENAME

public static final TaskSchedule.ResultOption RENAME
Renames old results before executing the task. Might want to combine this with a "max results" option so we don't accumulate them forever? The old task must be in a finished state.


TERMINATE

public static final TaskSchedule.ResultOption TERMINATE
Terminates and deletes any currently executing task. This is similar to the DELETE option, but it will also automatically terminate the task if it is running.


ITEMS

public static final TaskSchedule.ResultOption[] ITEMS
Method Detail

toString

public java.lang.String toString()

fromString

public static TaskSchedule.ResultOption fromString(java.lang.String name)