Package org.frankframework.scheduler.job
Class ActionJob
java.lang.Object
org.frankframework.core.TransactionAttributes
org.frankframework.scheduler.AbstractJobDef
org.frankframework.scheduler.job.ActionJob
- 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
- Direct Known Subclasses:
IbisActionJob
Job which can stop/start adapters and receivers.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.frankframework.core.TransactionAttributes
log
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Configure this component.void
execute()
Is wrapped around aLocker
andexceptions
will be managed automatically.void
setAction
(ActionJob.AvailableAction action) void
setAdapterName
(String adapterName) Adapter on which job operatesvoid
setConfigurationName
(String configurationName) Configuration on which job operatesvoid
setReceiverName
(String receiverName) Receiver on which job operatesMethods inherited from class org.frankframework.scheduler.AbstractJobDef
beforeExecuteJob, decrementCountThreads, executeJob, getIbisManager, getJobDetail, getMessageKeeper, incrementCountThreads, isRunning, setCronExpression, setDescription, setInterval, setJobGroup, setLocker, setMessageKeeperSize, setName, setNumThreads, start, stop, toString
Methods inherited from class org.frankframework.core.TransactionAttributes
configureTransactionAttributes, isTransacted, isTransacted, setTransacted, setTransactionTimeout
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.springframework.context.ApplicationContextAware
setApplicationContext
Methods inherited from interface org.frankframework.lifecycle.ConfigurableLifecycle
getPhase, isAutoStartup
Methods inherited from interface org.frankframework.core.HasApplicationContext
getApplicationContext, getConfigurationClassLoader
Methods inherited from interface org.frankframework.core.HasTransactionAttribute
getTransactionAttribute, getTransactionTimeout, getTxDef, setTransactionAttribute
Methods inherited from interface org.frankframework.scheduler.job.IJob
getCronExpression, getInterval, getJobGroup, getLocker, getName, isConfigured
Methods inherited from interface org.springframework.context.SmartLifecycle
stop
-
Constructor Details
-
ActionJob
public ActionJob()
-
-
Method Details
-
configure
Description copied from interface:IConfigurable
Configure this component.configure()
is called once at startup of the framework in the configure method of the owner of thisIConfigurable
. Purpose of this method is to check whether the static configuration of the object is correct. As much as possible class-instantiating should take place in theconfigure()
, to improve performance.In the case of a container, this will propagate the configure signal to all components that apply.
- Specified by:
configure
in interfaceIConfigurable
- Overrides:
configure
in classAbstractJobDef
- Throws:
ConfigurationException
- in case it was not able to configure the component.
-
execute
public void execute()Description copied from class:AbstractJobDef
Is wrapped around aLocker
andexceptions
will be managed automatically.- Specified by:
execute
in classAbstractJobDef
-
setAction
-
setConfigurationName
Configuration on which job operates -
setAdapterName
Adapter on which job operates -
setReceiverName
Receiver on which job operates
-