Package org.frankframework.scheduler.job
Class LoadDatabaseSchedulesJob
java.lang.Object
org.frankframework.core.TransactionAttributes
org.frankframework.scheduler.AbstractJobDef
org.frankframework.scheduler.job.LoadDatabaseSchedulesJob
- All Implemented Interfaces:
FrankElement,HasApplicationContext,HasName,HasTransactionAttribute,IConfigurable,IScopeProvider,NameAware,ConfigurableLifecycle,IJob,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.context.Lifecycle,org.springframework.context.Phased,org.springframework.context.SmartLifecycle
1. This method first stores all database jobs that can are found in the Quartz Scheduler in a Map.
2. It then loops through all records found in the database.
3. If the job is found, remove it from the Map and compares it with the already existing scheduled job.
Only if they differ, it overwrites the current job.
If it is not present it add the job to the scheduler.
4. Once it's looped through all the database jobs, loop through the remaining jobs in the Map.
Since they have been removed from the database, remove them from the Quartz Scheduler
Frank!Framework job which periodically looks in the IBISSCHEDULES table to see if a new
DatabaseJob should be loaded.- Author:
- Niels Meijer
-
Field Summary
Fields inherited from class org.frankframework.core.TransactionAttributes
logFields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Is wrapped around aLockerandexceptionswill be managed automatically.Methods inherited from class org.frankframework.scheduler.AbstractJobDef
beforeExecuteJob, configure, decrementCountThreads, executeJob, getIbisManager, getJobDetail, getMessageKeeper, incrementCountThreads, isRunning, setCronExpression, setDescription, setInterval, setJobGroup, setLocker, setMessageKeeperSize, setName, setNumThreads, start, stop, toStringMethods inherited from class org.frankframework.core.TransactionAttributes
configureTransactionAttributes, isTransacted, isTransacted, setTransacted, setTransactionTimeoutMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationContextAware
setApplicationContextMethods inherited from interface org.frankframework.lifecycle.ConfigurableLifecycle
getPhase, isAutoStartupMethods inherited from interface org.frankframework.core.FrankElement
addConfigWarningMethods inherited from interface org.frankframework.core.HasApplicationContext
getApplicationContext, getConfigurationClassLoaderMethods inherited from interface org.frankframework.core.HasTransactionAttribute
getTransactionAttribute, getTransactionTimeout, getTxDef, setTransactionAttributeMethods inherited from interface org.frankframework.scheduler.job.IJob
getCronExpression, getInterval, getJobGroup, getLocker, getName, isConfiguredMethods inherited from interface org.springframework.context.SmartLifecycle
stop
-
Constructor Details
-
LoadDatabaseSchedulesJob
public LoadDatabaseSchedulesJob()
-
-
Method Details
-
execute
public void execute()Description copied from class:AbstractJobDefIs wrapped around aLockerandexceptionswill be managed automatically.- Specified by:
executein classAbstractJobDef
-