|
Verastream Transaction Integrator 4.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
com.attachmate.tasks.TaskStatusChangeEvent
public class TaskStatusChangeEvent
This class represents an event fired by a task bean when the status of the 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 | |
---|---|
static int |
TASK_CANCELED
Task status constant indicating client operation execution was canceled by the user. |
static int |
TASK_CREATED
Task status constant indicating client operation is created but executeSync or executeAsync has not been
called yet. |
static int |
TASK_FAILED
Task status constant indicating unsuccessful completion of the client operation execution. |
static int |
TASK_STARTED
Task status constant indicating client operation started. |
static int |
TASK_SUCCESSFUL
Task status constant indicating successful completion of the client operation execution. |
static int |
TASK_TIMEOUT
Task status constant indicating client operation execution could not complete within the specified timeout. |
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 |
---|
equals, 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
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 client operation failure in more detailMethod Detail |
---|
public int getStatus()
public java.lang.Exception getException()
null
if the client operation completed
successfully or exception was not set by dispatcher
|
Verastream Transaction Integrator 4.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |