Class SchedulerServiceImpl

java.lang.Object
org.nuxeo.runtime.model.DefaultComponent
org.nuxeo.ecm.core.scheduler.SchedulerServiceImpl
All Implemented Interfaces:
SchedulerService, Adaptable, Component, Extensible, TimestampedService

public class SchedulerServiceImpl extends DefaultComponent implements SchedulerService
Schedule service implementation. Since the cleanup of the quartz job is done when service is activated, ( see https://jira.nuxeo.com/browse/NXP-7303 ) in cluster mode, the schedules contributions MUST be the same on all nodes. Due the fact that all jobs are removed when service starts on a node it may be a short period with no schedules in quartz table even other node is running.
  • Field Details

    • CLUSTER_START_DURATION_PROP

      public static final String CLUSTER_START_DURATION_PROP
      Since:
      11.1
      See Also:
    • CLUSTER_START_DURATION_DEFAULT

      public static final Duration CLUSTER_START_DURATION_DEFAULT
      Since:
      11.1
    • CLUSTER_START_DELAY_PROP

      public static final String CLUSTER_START_DELAY_PROP
      Since:
      2021.19
      See Also:
    • CLUSTER_START_DELAY_DEFAULT

      public static final Duration CLUSTER_START_DELAY_DEFAULT
      Default value is set to 5 seconds to delay the start by default
      Since:
      2021.19
    • context

      protected RuntimeContext context
    • scheduler

      protected org.quartz.Scheduler scheduler
    • registry

      protected final ScheduleExtensionRegistry registry
  • Constructor Details

    • SchedulerServiceImpl

      public SchedulerServiceImpl()
  • Method Details