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 TypeMethodDescriptionvoidCalled fromConfiguredJobwhich should trigger this job definition.longorg.quartz.JobDetailThe 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.booleanOnly register (and trigger) Jobs that have been successfully configured.voidsetCronExpression(String cronExpression) CRON expression that determines the frequency of execution.voidsetInterval(long interval) Triggers the Job at the specified number of milliseconds.voidOptional element to avoid parallel execution of the Job, by multiple threads or servers.Methods inherited from interface org.springframework.context.ApplicationContextAware
setApplicationContextMethods inherited from interface org.frankframework.lifecycle.ConfigurableLifecycle
getPhase, isAutoStartup, startMethods inherited from interface org.frankframework.core.FrankElement
addConfigWarningMethods inherited from interface org.frankframework.core.HasApplicationContext
getApplicationContext, getConfigurationClassLoaderMethods inherited from interface org.frankframework.core.IConfigurable
configureMethods inherited from interface org.springframework.context.Lifecycle
isRunning, stopMethods 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. Value0may 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.- Specified by:
isConfiguredin interfaceConfigurableLifecycle- Returns:
- If the return value is
truetheIConfigurable.configure()method won't be executed.
-
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 fromConfiguredJobwhich should trigger this job definition.
-