|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Job
A scheduled job.
A job starts out in the created state. When the job is queued for execution, it transitions to the queued state. While the job is executing it is in the running state. When the job execution ends, it transitions to the finished or failed state - depending on the outcome of the task that was performed.
| Nested Class Summary | |
|---|---|
static class |
Job.State
|
| Method Summary | |
|---|---|
Job.State |
currentState()
Returns the current state of this job. |
void |
deQueue()
Transitions this job to the pre-queued (created) state. |
java.lang.String |
getJobId()
Returns the ID of this Job. |
java.lang.String |
getJobName()
Returns the name of this Job. |
long |
getRuntime()
Returns the job execution time in milliseconds. |
java.util.Date |
getStartTime()
Returns the time this job is scheduled to start. |
boolean |
isValid()
Returns true if this job is ready to be queued. |
void |
queue()
Transitions this job to the queued state. |
| Methods inherited from interface java.lang.Runnable |
|---|
run |
| Method Detail |
|---|
Job.State currentState()
java.lang.String getJobId()
java.lang.String getJobName()
long getRuntime()
boolean isValid()
void deQueue()
throws InvalidJobException
InvalidJobException
void queue()
throws InvalidJobException
InvalidJobExceptionjava.util.Date getStartTime()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||