Package org.silverpeas.core.scheduler
Interface ScheduledJob
-
- All Known Implementing Classes:
QuartzScheduledJob
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getName()
Gets the name under which the job is registered into the scheduler.Date
getNextExecutionTime()
Gets the next time at which the execution of this job will be fired.
-
-
-
Method Detail
-
getName
String getName()
Gets the name under which the job is registered into the scheduler.- Returns:
- the name of the job.
-
getNextExecutionTime
Date getNextExecutionTime()
Gets the next time at which the execution of this job will be fired. The next execution time depends upon the trigger with which it is registered in the scheduler.- Returns:
- the next time at which this job should be executed.
-
-