Package org.frankframework.scheduler.job
Interface IJob
- All Superinterfaces:
org.springframework.context.ApplicationContextAware
,org.springframework.beans.factory.Aware
,IConfigurable
,IConfigurationAware
,INamedObject
,IScopeProvider
- All Known Implementing Classes:
AbstractJobDef
,ActionJob
,CheckReloadJob
,CleanupDatabaseJob
,CleanupFileSystemJob
,DatabaseJob
,ExecuteQueryJob
,IbisActionJob
,Job
,LoadDatabaseSchedulesJob
,RecoverAdaptersJob
,SendMessageJob
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
Actual implementation of theIJob
.void
Called fromConfiguredJob
which should trigger this job definition.long
org.quartz.JobDetail
The group of the Job, used in combination with Name to create a unique key.getName()
The name of the Job, used in combination with JobGroup to create a unique key.boolean
Only register (and trigger) Jobs that have been successfully configured.void
setCronExpression
(String cronExpression) CRON expression that determines the frequency of execution.void
setInterval
(long interval) Triggers the Job at the specified number of milliseconds.void
Optional element to avoid parallel execution of the Job, by multiple threads or servers.Methods inherited from interface org.springframework.context.ApplicationContextAware
setApplicationContext
Methods inherited from interface org.frankframework.core.IConfigurable
configure
Methods inherited from interface org.frankframework.core.IConfigurationAware
getApplicationContext
Methods inherited from interface org.frankframework.core.INamedObject
setName
Methods inherited from interface org.frankframework.core.IScopeProvider
getConfigurationClassLoader
-
Method Details
-
execute
Actual implementation of theIJob
. Is wrapped around aLocker
andexceptions
will be managed automatically.- Throws:
TimeoutException
- when the TransactionTimeout has been reachedJobExecutionException
- when the implementation fails to execute
-
setInterval
void setInterval(long interval) Triggers the Job at the specified number of milliseconds. Keep cronExpression empty in order to use interval. Value0
may be used to run once at startup of the application. A value of 0 in combination with function 'sendMessage' will set dependencyTimeout on the IbisLocalSender to -1 to keep waiting indefinitely instead of 60 seconds for the adapter to start. -
getInterval
long getInterval() -
setCronExpression
CRON expression that determines the frequency of execution. Can not be used in combination with Interval. -
getCronExpression
String getCronExpression() -
getJobDetail
org.quartz.JobDetail getJobDetail() -
getName
String getName()The name of the Job, used in combination with JobGroup to create a unique key.- Specified by:
getName
in interfaceIConfigurationAware
- Specified by:
getName
in interfaceINamedObject
-
getJobGroup
String getJobGroup()The group of the Job, used in combination with Name to create a unique key. -
isConfigured
boolean isConfigured()Only register (and trigger) Jobs that have been successfully configured. -
getMessageKeeper
MessageKeeper getMessageKeeper() -
setLocker
Optional element to avoid parallel execution of the Job, by multiple threads or servers. The Job is NOT executed when the lock cannot be obtained! In case another thread, potentially on another server, holds the lock and does not release it in a timely manner, it will not trigger the job. -
getLocker
Locker getLocker() -
executeJob
void executeJob()Called fromConfiguredJob
which should trigger this job definition.
-