|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.sapportals.wcm.util.enum.AbstractEnum
|
+--com.sapportals.wcm.service.taskqueue.TaskState
This class defines the identifiers for the different lifecycle states of a task in the task queue service.
If a new task is added to the task queue the task's state will be set to
NEW. If a task is fetched from the queue it's state will be set to
ACTIVE to indicate that the task is currently being processed. The
processor itself should set the task's state to DONE ifthe task was
processed sucessfully or ERROR if the task failed.
If an active task is added to ther queue an exception will be raised. It is
possible to add tasks that are done (have the DONE-state) to run
them once again.
Copyright 2004 SAP AG
| Field Summary | |
static TaskState |
ACTIVE
A task fetched from the task queue is set to this state by the task queue service. |
static TaskState |
DONE
A processor that sucessfully finished the task sets this state. |
static TaskState |
ERROR
A processor that failed to execute this tasks sets this state. |
static TaskState |
NEW
A task added to the task queue is set to this state. |
| Fields inherited from class com.sapportals.wcm.util.enum.AbstractEnum |
description, m_code |
| Method Summary | |
static TaskState |
getTaskState(int state)
Converts a task state string representation to a task state object |
int |
getValue()
Gets the value attribute of the TaskState object |
java.lang.String |
toString()
Overrides java.lan.Object.toString |
| Methods inherited from class com.sapportals.wcm.util.enum.AbstractEnum |
equals |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final TaskState NEW
public static final TaskState ACTIVE
ITaskQueueReader.get(),
ITaskQueue.get()public static final TaskState ERROR
public static final TaskState DONE
| Method Detail |
public int getValue()
getValue in class AbstractEnumpublic java.lang.String toString()
toString in class AbstractEnumpublic static TaskState getTaskState(int state)
state - Description of the Parameternull if this state is unknown
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||