Package org.frankframework.configuration
Class ScheduleManager
java.lang.Object
org.frankframework.lifecycle.AbstractConfigurableLifecyle
org.frankframework.configuration.ScheduleManager
- All Implemented Interfaces:
AutoCloseable
,ConfigurableLifecycle
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
,org.springframework.context.Lifecycle
,org.springframework.context.Phased
,org.springframework.context.SmartLifecycle
@FrankDocGroup(OTHER)
public class ScheduleManager
extends AbstractConfigurableLifecyle
implements org.springframework.context.ApplicationContextAware, AutoCloseable
Container for jobs that are scheduled for periodic execution.
Configure/start/stop lifecycles are managed by Spring.
- Author:
- Niels Meijer
- See Also:
-
Field Summary
Fields inherited from class org.frankframework.lifecycle.AbstractConfigurableLifecyle
log
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addScheduledJob
(IJob job) Job that is executed periodically.void
close()
void
Configure this component.org.springframework.context.ApplicationContext
int
getPhase()
getSchedule
(String name) 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.AbstractConfigurableLifecyle
getState, inState, isRunning, updateState
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.frankframework.lifecycle.ConfigurableLifecycle
isAutoStartup
Methods inherited from interface org.springframework.context.SmartLifecycle
stop
-
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.
-
getPhase
public int getPhase()- Specified by:
getPhase
in interfaceConfigurableLifecycle
- Specified by:
getPhase
in interfaceorg.springframework.context.Phased
- Specified by:
getPhase
in interfaceorg.springframework.context.SmartLifecycle
-
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
-
addScheduledJob
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
-