Package org.frankframework.scheduler.job
Interface IJob
- All Superinterfaces:
org.springframework.context.ApplicationContextAware
,org.springframework.beans.factory.Aware
,ConfigurableLifecycle
,FrankElement
,HasApplicationContext
,HasName
,IConfigurable
,IScopeProvider
,org.springframework.context.Lifecycle
,NameAware
,org.springframework.context.Phased
,org.springframework.context.SmartLifecycle
- All Known Implementing Classes:
AbstractJobDef
,ActionJob
,CheckReloadJob
,CleanupDatabaseJob
,CleanupFileSystemJob
,DatabaseJob
,ExecuteQueryJob
,IbisActionJob
,Job
,LoadDatabaseSchedulesJob
,RecoverAdaptersJob
,SendMessageJob
-
Field Summary
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.lifecycle.ConfigurableLifecycle
getPhase, isAutoStartup
Methods inherited from interface org.frankframework.core.HasApplicationContext
getApplicationContext, getConfigurationClassLoader
Methods inherited from interface org.frankframework.core.IConfigurable
configure
Methods inherited from interface org.springframework.context.Lifecycle
isRunning, start, stop
Methods inherited from interface org.springframework.context.SmartLifecycle
stop
-
Method Details
-
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. -
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.
-