Class QuartzScheduledJob
- java.lang.Object
-
- org.silverpeas.core.scheduler.quartz.QuartzScheduledJob
-
- All Implemented Interfaces:
ScheduledJob
public class QuartzScheduledJob extends Object implements ScheduledJob
This class represents a job that is scheduled in a Quartz scheduler. For each job to schedule by the Scheduler Engine, a correspondingQuartzScheduledJob
instance is created with the trigger that is actually used by the Quartz scheduler to schedule the job. In Quartz, a trigger is always related to the scheduled job and a scheduled job can have one or more triggers in Quartz.A
QuartzScheduledJob
instance isn't serializable meaning it is lost at platform shutdown. Please, use the
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
QuartzScheduledJob(org.quartz.Trigger trigger)
Constructs a new job that is scheduled in a Quartz scheduler.
-
Method Summary
All Methods Instance Methods Concrete 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
public String getName()
Description copied from interface:ScheduledJob
Gets the name under which the job is registered into the scheduler.- Specified by:
getName
in interfaceScheduledJob
- Returns:
- the name of the job.
-
getNextExecutionTime
public Date getNextExecutionTime()
Description copied from interface:ScheduledJob
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.- Specified by:
getNextExecutionTime
in interfaceScheduledJob
- Returns:
- the next time at which this job should be executed.
-
-