Class JobInterruptMonitorPlugin

    • Constructor Detail

      • JobInterruptMonitorPlugin

        public JobInterruptMonitorPlugin()
    • Method Detail

      • start

        public void start()
        Description copied from interface: SchedulerPlugin

        Called when the associated Scheduler is started, in order to let the plug-in know it can now make calls into the scheduler if it needs to.

        Specified by:
        start in interface SchedulerPlugin
      • shutdown

        public void shutdown()
        Description copied from interface: SchedulerPlugin

        Called in order to inform the SchedulerPlugin that it should free up all of it's resources because the scheduler is shutting down.

        Specified by:
        shutdown in interface SchedulerPlugin
      • scheduleJobInterruptMonitor

        public java.util.concurrent.ScheduledFuture scheduleJobInterruptMonitor​(JobKey jobkey,
                                                                                long delay)
      • getDefaultMaxRunTime

        public long getDefaultMaxRunTime()
      • setDefaultMaxRunTime

        public void setDefaultMaxRunTime​(long defaultMaxRunTime)
      • getName

        public java.lang.String getName()
        Description copied from interface: TriggerListener

        Get the name of the TriggerListener.

        Specified by:
        getName in interface TriggerListener
      • initialize

        public void initialize​(java.lang.String name,
                               Scheduler scheduler,
                               ClassLoadHelper helper)
                        throws SchedulerException
        Description copied from interface: SchedulerPlugin

        Called during creation of the Scheduler in order to give the SchedulerPlugin a chance to initialize.

        At this point, the Scheduler's JobStore is not yet initialized.

        If you need direct access your plugin, for example during Job execution, you can have this method explicitly put a reference to this plugin in the Scheduler's SchedulerContext.

        Specified by:
        initialize in interface SchedulerPlugin
        Parameters:
        name - The name by which the plugin is identified.
        scheduler - The scheduler to which the plugin is registered.
        helper - The classLoadHelper the SchedulerFactory is actually using
        Throws:
        SchedulerConfigException - if there is an error initializing.
        SchedulerException