Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

oracle.ide.task
Enum TaskState

java.lang.Object
  extended by java.lang.Enum<TaskState>
      extended by oracle.ide.task.TaskState
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TaskState>

public enum TaskState
extends java.lang.Enum<TaskState>

The enumeration of the possible states of a Task.


Enum Constant Summary
ABORTED_INCOMPLETE
          The Task terminated itself and is thus possibly incomplete.
ABORTED_ON_EXCEPTION
          The Task was aborted by the Task Manager upon encountering an unhandled exception that propagated to the TaskManager.
CANCEL_REQUESTED
          A cancellation has been requested for this task but the task has not acknowledged this request nor terminated itself.
CANCELLED
          The task has terminated itself on a cancel request.
CANCELLING
          The Task has acknowledged that it will be terminating itself.
COMPLETED
          The task has completed normally.
CREATED
          The initial state when a Task is constructed.
INTERRUPTED
          The Thread was interrupted
PAUSE_REQUESTED
          A Pause was requested but has not been acknowledged by the Task
PAUSED
          The task has been Paused on request.
PAUSING
          The task has acknowledged the Pause request but has not paused itself yet
RESERVED
          reserved for internal use.
RUNNING
          The task has been started.
SCHEDULED
          The scheduled state means that the task manager has scheduled this task and any new tasks with resource locking requests will have to compete with this task.
 
Method Summary
static TaskState valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TaskState[] 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

CREATED

public static final TaskState CREATED
The initial state when a Task is constructed.


SCHEDULED

public static final TaskState SCHEDULED
The scheduled state means that the task manager has scheduled this task and any new tasks with resource locking requests will have to compete with this task. The scheduled state may be skipped, going directly to running state.


RUNNING

public static final TaskState RUNNING
The task has been started. Whether the thread is running or not depends on the state of the Thread itself.


COMPLETED

public static final TaskState COMPLETED
The task has completed normally.


CANCEL_REQUESTED

public static final TaskState CANCEL_REQUESTED
A cancellation has been requested for this task but the task has not acknowledged this request nor terminated itself.


CANCELLING

public static final TaskState CANCELLING
The Task has acknowledged that it will be terminating itself.


CANCELLED

public static final TaskState CANCELLED
The task has terminated itself on a cancel request.


ABORTED_ON_EXCEPTION

public static final TaskState ABORTED_ON_EXCEPTION
The Task was aborted by the Task Manager upon encountering an unhandled exception that propagated to the TaskManager.


ABORTED_INCOMPLETE

public static final TaskState ABORTED_INCOMPLETE
The Task terminated itself and is thus possibly incomplete.


INTERRUPTED

public static final TaskState INTERRUPTED
The Thread was interrupted


PAUSE_REQUESTED

public static final TaskState PAUSE_REQUESTED
A Pause was requested but has not been acknowledged by the Task


PAUSING

public static final TaskState PAUSING
The task has acknowledged the Pause request but has not paused itself yet


PAUSED

public static final TaskState PAUSED
The task has been Paused on request.


RESERVED

public static final TaskState RESERVED
reserved for internal use.

Method Detail

values

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

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

valueOf

public static TaskState 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

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

Copyright © 1997, 2011, Oracle. All rights reserved.