Class JobSchedulerService
java.lang.Object
fr.paris.lutece.plugins.scheduler.quartz.service.JobSchedulerService
JobSchedulerService. Manages the creation and lifecycle of the two Quartz scheduler (local and clustered) based on the plugin configuration.
-
Method Summary
Modifier and TypeMethodDescriptionexecuteJob(org.quartz.JobKey jobKey) static JobSchedulerServiceDeprecated, for removal: This API element is subject to removal in a future version.scheduleJob(org.quartz.JobDetail job, org.quartz.Trigger trigger) Schedule a job according cron informationstatic voidshutdown()Deprecated, for removal: This API element is subject to removal in a future version.Use@Injectto obtain theJobSchedulerServiceinstance.voidunscheduleJob(String jobId)
-
Method Details
-
getInstance
Deprecated, for removal: This API element is subject to removal in a future version.Use@Injectto obtain theJobSchedulerServiceinstance. This method will be removed in future versions.Returns the unique instance of theJobSchedulerServiceservice.This method is deprecated and is provided for backward compatibility only. For new code, use dependency injection with
@Injectto obtain theJobSchedulerServiceinstance instead.- Returns:
- The unique instance of
JobSchedulerService.
-
scheduleJob
Schedule a job according cron information- Parameters:
job- The Job to scheduletrigger- The Cron trigger- Returns:
- Date
-
unscheduleJob
-
executeJob
-
shutdown
Deprecated, for removal: This API element is subject to removal in a future version.Use@Injectto obtain theJobSchedulerServiceinstance. This method will be removed in future versions.Shutdown the service (Called by the core while the webapp is destroyed)This method is deprecated and is provided for backward compatibility only. For new code, use dependency injection with
@Injectto obtain theJobSchedulerServiceinstance instead.
-
@Injectto obtain theJobSchedulerServiceinstance.