Package org.nuxeo.ecm.core.scheduler
Class DefaultEventJobFactory
- java.lang.Object
-
- org.nuxeo.ecm.core.scheduler.DefaultEventJobFactory
-
- All Implemented Interfaces:
EventJobFactory
public class DefaultEventJobFactory extends Object implements EventJobFactory
- Since:
- 10.2
-
-
Constructor Summary
Constructors Constructor Description DefaultEventJobFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.quartz.JobBuilder
buildJob(Schedule schedule, Map<String,Serializable> parameters)
Builds the job of the scheduled event.org.quartz.ScheduleBuilder<?>
buildSchedule(Schedule schedule)
Builds the schedule of the trigger (used byEventJobFactory.buildTrigger(Schedule)
).org.quartz.TriggerBuilder<?>
buildTrigger(Schedule schedule)
Builds the trigger of the scheduled event.protected Class<? extends EventJob>
getJobClass()
-
-
-
Method Detail
-
buildJob
public org.quartz.JobBuilder buildJob(Schedule schedule, Map<String,Serializable> parameters)
Description copied from interface:EventJobFactory
Builds the job of the scheduled event.Returns a builder to allow extensibility.
- Specified by:
buildJob
in interfaceEventJobFactory
- Parameters:
schedule
- Scheduled event contribution.parameters
- Job parameters (might benull
).- Returns:
- An instance of
JobBuilder
.
-
buildTrigger
public org.quartz.TriggerBuilder<?> buildTrigger(Schedule schedule)
Description copied from interface:EventJobFactory
Builds the trigger of the scheduled event.Returns a builder to allow extensibility.
- Specified by:
buildTrigger
in interfaceEventJobFactory
- Parameters:
schedule
- Scheduled event contribution.- Returns:
- An instance of
TriggerBuilder
.
-
buildSchedule
public org.quartz.ScheduleBuilder<?> buildSchedule(Schedule schedule)
Description copied from interface:EventJobFactory
Builds the schedule of the trigger (used byEventJobFactory.buildTrigger(Schedule)
).Returns a builder to allow extensibility.
- Specified by:
buildSchedule
in interfaceEventJobFactory
- Parameters:
schedule
- Scheduled event contribution.- Returns:
- An instance of
ScheduleBuilder
.
-
-