Class ScheduleManager

java.lang.Object
org.frankframework.lifecycle.ConfigurableLifecyleBase
org.frankframework.configuration.ScheduleManager
All Implemented Interfaces:
AutoCloseable, ConfigurableLifecycle, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.context.Lifecycle

public class ScheduleManager extends ConfigurableLifecyleBase implements org.springframework.context.ApplicationContextAware, AutoCloseable
Container for jobs that are scheduled for periodic execution.
Author:
Niels Meijer
  • Constructor Details

    • ScheduleManager

      public ScheduleManager()
  • Method Details

    • configure

      public void configure() throws ConfigurationException
      Description copied from interface: ConfigurableLifecycle
      Configure this component.

      In the case of a container, this will propagate the start signal to all components that apply.

      Specified by:
      configure in interface ConfigurableLifecycle
      Throws:
      ConfigurationException - in case it was not able to configure the component.
    • start

      public void start()
      Configure and start, managed through the Spring Lifecyle
      Specified by:
      start in interface org.springframework.context.Lifecycle
    • stop

      public void stop()
      remove all registered jobs
      Specified by:
      stop in interface org.springframework.context.Lifecycle
    • close

      public void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception
    • registerScheduledJob

      public void registerScheduledJob(IJob job)
      Job that is executed periodically. The time of execution can be configured within the job or from outside the configuration through the Frank!Console.
    • unRegister

      public void unRegister(IJob job)
    • getSchedules

      public final Map<String,IJob> getSchedules()
    • getSchedulesList

      public List<IJob> getSchedulesList()
    • getSchedule

      public IJob getSchedule(String name)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getApplicationContext

      public org.springframework.context.ApplicationContext getApplicationContext()
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
    • getSchedulerHelper

      public SchedulerHelper getSchedulerHelper()
    • setSchedulerHelper

      public void setSchedulerHelper(SchedulerHelper schedulerHelper)