Class JobSchedulerService

java.lang.Object
fr.paris.lutece.plugins.scheduler.quartz.service.JobSchedulerService

@ApplicationScoped public class JobSchedulerService extends Object
JobSchedulerService. Manages the creation and lifecycle of the two Quartz scheduler (local and clustered) based on the plugin configuration.
  • Method Details

    • getInstance

      @Deprecated(since="8.0", forRemoval=true) public static JobSchedulerService getInstance()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use @Inject to obtain the JobSchedulerService instance. This method will be removed in future versions.
      Returns the unique instance of the JobSchedulerService service.

      This method is deprecated and is provided for backward compatibility only. For new code, use dependency injection with @Inject to obtain the JobSchedulerService instance instead.

      Returns:
      The unique instance of JobSchedulerService.
    • scheduleJob

      public Date scheduleJob(org.quartz.JobDetail job, org.quartz.Trigger trigger)
      Schedule a job according cron information
      Parameters:
      job - The Job to schedule
      trigger - The Cron trigger
      Returns:
      Date
    • unscheduleJob

      public void unscheduleJob(String jobId)
    • executeJob

      public Date executeJob(org.quartz.JobKey jobKey)
    • shutdown

      @Deprecated(since="8.0", forRemoval=true) public static void shutdown()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use @Inject to obtain the JobSchedulerService instance. 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 @Inject to obtain the JobSchedulerService instance instead.