Class CleanupDatabaseJob
java.lang.Object
org.frankframework.core.TransactionAttributes
org.frankframework.scheduler.AbstractJobDef
org.frankframework.scheduler.job.CleanupDatabaseJob
- 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
Frank!Framework job to cleanup the
.
IBISSTORE and IBISLOCK tables.
Find all MessageLogs and Lockers in the current configuration and removes database
entries which have surpassed their corresponding
invalid reference
MessageLog's ExpiryDateField
-
Field Summary
Fields inherited from class TransactionAttributes
logFields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCalled before executeJob to prepare resources for executeJob method.voidexecute()Is wrapped around aLockerandexceptionswill be managed automatically.Locate all Lockers, and find out which datasources are used.protected List<org.frankframework.scheduler.job.CleanupDatabaseJob.MessageLogObject> getCleanUpIbisstoreQuery(String tableName, String keyField, String typeField, String expiryDateField, int maxRows, Dbms dbmsName) voidsetQueryTimeout(int i) The number of seconds the database driver will wait for a statement to execute.Methods inherited from class AbstractJobDef
configure, decrementCountThreads, executeJob, getIbisManager, getJobDetail, getMessageKeeper, incrementCountThreads, isRunning, setCronExpression, setDescription, setInterval, setJobGroup, setLocker, setMessageKeeperSize, setName, setNumThreads, start, stop, toStringMethods inherited from class TransactionAttributes
configureTransactionAttributes, isTransacted, isTransacted, setTransacted, setTransactionTimeoutMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationContextAware
setApplicationContextMethods inherited from interface ConfigurableLifecycle
getPhase, isAutoStartupMethods inherited from interface FrankElement
addConfigWarningMethods inherited from interface HasApplicationContext
getApplicationContext, getConfigurationClassLoaderMethods inherited from interface HasTransactionAttribute
getTransactionAttribute, getTransactionTimeout, getTxDef, setTransactionAttributeMethods inherited from interface IJob
getCronExpression, getInterval, getJobGroup, getLocker, getName, isConfiguredMethods inherited from interface org.springframework.context.SmartLifecycle
isPauseable, stop
-
Constructor Details
-
CleanupDatabaseJob
public CleanupDatabaseJob()
-
-
Method Details
-
beforeExecuteJob
public boolean beforeExecuteJob()Description copied from class:AbstractJobDefCalled before executeJob to prepare resources for executeJob method. Returns false if job does not need to run- Overrides:
beforeExecuteJobin classAbstractJobDef
-
execute
public void execute()Description copied from class:AbstractJobDefIs wrapped around aLockerandexceptionswill be managed automatically.- Specified by:
executein classAbstractJobDef
-
getAllLockerDatasourceNames
-
getAllMessageLogs
protected List<org.frankframework.scheduler.job.CleanupDatabaseJob.MessageLogObject> getAllMessageLogs() -
setQueryTimeout
public void setQueryTimeout(int i) The number of seconds the database driver will wait for a statement to execute. If the limit is exceeded, a TimeoutException is thrown. 0 means no timeout- Default value
- 0
-
getCleanUpIbisstoreQuery
-