Class QuartzSchedulerHelper


  • @Immutable
    public final class QuartzSchedulerHelper
    extends Object
    Misc utility methods around Quartz schedulers
    Author:
    Philip Helger
    • Field Detail

      • DEFAULT_START_AUTOMATICALLY

        public static final boolean DEFAULT_START_AUTOMATICALLY
        See Also:
        Constant Field Values
    • Method Detail

      • getSchedulerFactory

        @Nonnull
        public static com.helger.quartz.ISchedulerFactory getSchedulerFactory()
        Returns:
        The global scheduler factory that is used. Never null.
        Since:
        1.8.2
      • getScheduler

        @Nonnull
        public static com.helger.quartz.IScheduler getScheduler()
        Returns:
        The single IScheduler instance that is ensured to be started. Never null.
        See Also:
        getScheduler(boolean)
      • getScheduler

        @Nonnull
        public static com.helger.quartz.IScheduler getScheduler​(boolean bStartAutomatically)
        Get the underlying Quartz scheduler
        Parameters:
        bStartAutomatically - If true the returned scheduler is automatically started. If false the state is not changed.
        Returns:
        The underlying Quartz scheduler. Never null.
      • getSchedulerMetaData

        @Nonnull
        public static com.helger.quartz.SchedulerMetaData getSchedulerMetaData()
        Get the metadata of the scheduler. The state of the scheduler is not changed within this method.
        Returns:
        The metadata of the underlying scheduler.
      • getSchedulerState

        @Nonnull
        public static ESchedulerState getSchedulerState()
        Returns:
        The state of the scheduler. Never null.