|
Services Builder for Screens | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.EventObject | +--com.attachmate.tasks.TaskStatusChangeEvent
This class represents an event fired by a task bean when a task bean status changes.
This same object can also be retrieved via ITask.getStatus
.
The TaskStatusChangeEvent's state consists of
ITask
,
ITaskListener
,
Serialized FormField Summary | |
protected java.lang.Exception |
m_exception
Optional exception object describing the cause of failure. |
protected int |
m_status
Status code (from task status constants). |
static int |
TASK_CANCELED
Task status constant indicating task execution was canceled by the user. |
static int |
TASK_CREATED
Task status constant indicating task is created but executeSync or executeAsync has not been
called yet. |
static int |
TASK_DISCONNECTED
Task status constant indicating the underlying session was disconnected during the task execution. |
static int |
TASK_FAILED
Task status constant indicating unsuccessful completion of the task execution. |
static int |
TASK_STARTED
Task status constant indicating task started. |
static int |
TASK_SUCCESSFUL
Task status constant indicating successful completion of the task execution. |
static int |
TASK_TIMEOUT
Task status constant indicating task execution could not complete within the specified timeout. |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
TaskStatusChangeEvent(java.lang.Object source)
Constructs a new TaskStatusChangeEvent using default status information and no exception. |
|
TaskStatusChangeEvent(java.lang.Object source,
int status)
Constructs a new TaskStatusChangeEvent with status information. |
|
TaskStatusChangeEvent(java.lang.Object source,
int status,
java.lang.Exception exception)
Constructs a new TaskStatusChangeEvent with status and exception information. |
Method Summary | |
java.lang.Exception |
getException()
Optional event information. |
int |
getStatus()
Task completion status |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int TASK_CREATED
executeSync
or executeAsync
has not been
called yet. A task listener event is not fired with this status.
However, this status may be received if a client calls
getStatus
on the task bean before executing it.
public static final int TASK_STARTED
executeSync
or executeAsync
is called on the task bean.
public static final int TASK_SUCCESSFUL
public static final int TASK_FAILED
public static final int TASK_CANCELED
public static final int TASK_TIMEOUT
public static final int TASK_DISCONNECTED
protected int m_status
protected java.lang.Exception m_exception
Constructor Detail |
public TaskStatusChangeEvent(java.lang.Object source)
source
- reference to the object that fired this eventpublic TaskStatusChangeEvent(java.lang.Object source, int status)
source
- reference to the object that fired this eventstatus
- event status information (one of the task status constants)public TaskStatusChangeEvent(java.lang.Object source, int status, java.lang.Exception exception)
source
- reference to the object that fired this eventstatus
- event status information (one of the task status constants)exception
- optional exception describing a task failure in more detailMethod Detail |
public int getStatus()
public java.lang.Exception getException()
null
if the task completed
successfully or exception was not set by dispatcher
|
Services Builder for Screens | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |