Package org.frankframework.configuration
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
-
Field Summary
Fields inherited from class org.frankframework.lifecycle.ConfigurableLifecyleBase
log
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
Configure this component.org.springframework.context.ApplicationContext
getSchedule
(String name) void
registerScheduledJob
(IJob job) Job that is executed periodically.void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) void
setSchedulerHelper
(SchedulerHelper schedulerHelper) void
start()
Configure and start, managed through the Spring Lifecylevoid
stop()
remove all registered jobstoString()
void
unRegister
(IJob job) Methods inherited from class org.frankframework.lifecycle.ConfigurableLifecyleBase
getState, inState, isRunning, updateState
-
Constructor Details
-
ScheduleManager
public ScheduleManager()
-
-
Method Details
-
configure
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 interfaceConfigurableLifecycle
- 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 interfaceorg.springframework.context.Lifecycle
-
stop
public void stop()remove all registered jobs- Specified by:
stop
in interfaceorg.springframework.context.Lifecycle
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
registerScheduledJob
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
-
getSchedules
-
getSchedulesList
-
getSchedule
-
toString
-
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext() -
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
-
getSchedulerHelper
-
setSchedulerHelper
-