|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The current state of a scheduled task.
The Scheduler
object has methods which allow modifying and
viewing a task that was created using it's create
method.
Throughout the lifetime of a task, the status will change and it may be
useful to know what that state is.
Scheduler
Field Summary | |
---|---|
static int |
CANCELLED
The scheduled task has been cancelled using the Scheduler.cancel method. |
static int |
COMPLETE
The scheduled task has fired to completion. |
static int |
INVALID
The scheduled task has been purged and is no longer valid. |
static int |
RUNNING
The scheduled task is currently executing. |
static int |
SCHEDULED
The scheduled task is currently scheduled to execute. |
static long |
serialVersionUID
|
static int |
SUSPENDED
The scheduled task is suspended. |
Method Summary | |
---|---|
java.lang.String |
getName()
Get the name of the task. |
java.util.Date |
getNextFireTime()
Get the date and time which this task is scheduled to fire next. |
int |
getRepeatsLeft()
Get the number of repeats that are left for this task. |
int |
getStatus()
Get the status of a task that is retrieved from a Scheduler. |
java.lang.String |
getTaskId()
Get the task identifier for this task that was assigned when the task was created. |
java.util.Date |
getTimeCreated()
Get the date and time which this task was originally created. |
Field Detail |
public static final long serialVersionUID
public static final int SCHEDULED
public static final int SUSPENDED
Scheduler.suspend(java.lang.String)
,
Scheduler.resume(java.lang.String)
,
Constant Field Valuespublic static final int CANCELLED
Scheduler.cancel
method.
The task will not fire and it cannot be resumed, but it can be purged.
Scheduler.cancel(java.lang.String, boolean)
,
Scheduler.purge(java.lang.String)
,
Constant Field Valuespublic static final int COMPLETE
Scheduler.purge(java.lang.String)
,
TaskInfo.setAutoPurge(boolean)
,
TaskInfo.setNumberOfRepeats(int)
,
Constant Field Valuespublic static final int RUNNING
public static final int INVALID
Scheduler.purge(java.lang.String)
,
Constant Field ValuesMethod Detail |
public int getStatus()
Scheduler
public java.lang.String getTaskId()
Scheduler.create(com.ibm.websphere.scheduler.TaskInfo)
public java.lang.String getName()
TaskInfo.setName
.TaskInfo.setName(java.lang.String)
public int getRepeatsLeft()
public java.util.Date getNextFireTime()
public java.util.Date getTimeCreated()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |