Package org.frankframework.scheduler.job
Class CleanupFileSystemJob
java.lang.Object
org.frankframework.core.TransactionAttributes
org.frankframework.scheduler.AbstractJobDef
org.frankframework.scheduler.job.CleanupFileSystemJob
- 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 empty files in a given directory that have been
stale (untouched) for the given
retention duration.
See DirectoryCleaner for more info.
-
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 TypeMethodDescriptionvoidaddDirectoryCleaner(DirectoryCleaner directoryCleaner) voidexecute()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
-
CleanupFileSystemJob
public CleanupFileSystemJob()
-
-
Method Details
-
execute
public void execute()Description copied from class:AbstractJobDefIs wrapped around aLockerandexceptionswill be managed automatically.- Specified by:
executein classAbstractJobDef
-
addDirectoryCleaner
-