|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ScheduledJob
A job that is scheduled in the scheduler. A job registered in the scheduler is instanciated into a ScheduledJob object that carries all of the information required by the scheduler to perform its task. The implementation of this interface depends upon the scheduling backend in use.
Method Summary | |
---|---|
void |
execute(JobExecutionContext context)
Executes the job with the specified execution context. |
String |
getName()
Gets the name under which the job is registered into the scheduler. |
long |
getNexExecutionTimeInMillis()
Gets the next time in milliseconds at which the execution of this job will be fired. |
Date |
getNextExecutionTime()
Gets the next time at which the execution of this job will be fired. |
SchedulerEventListener |
getSchedulerEventListener()
Gets the listener of the scheduler's events mapped with the state of this job execution. |
JobTrigger |
getTrigger()
Gets the trigger responsible of firing the execution of this job. |
Method Detail |
---|
String getName()
Date getNextExecutionTime()
long getNexExecutionTimeInMillis()
JobTrigger getTrigger()
SchedulerEventListener getSchedulerEventListener()
void execute(JobExecutionContext context) throws Exception
context
- the context under which this job is executed.
Exception
- if an error occurs during the job execution.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |