Class JobServiceConfiguration
java.lang.Object
org.flowable.common.engine.impl.AbstractServiceConfiguration<JobServiceConfiguration>
org.flowable.job.service.JobServiceConfiguration
This service configuration contains all settings and instances around job execution and management. Note that a
JobServiceConfiguration is
not shared between engines and instantiated for each engine.- Author:
- Tijs Rademakers
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AsyncExecutorprotected intprotected intprotected AsyncExecutorprotected intprotected List<AsyncRunnableExecutionExceptionHandler> protected BusinessCalendarManagerprotected CommandExecutorprotected DeadLetterJobDataManagerprotected DeadLetterJobEntityManagerprotected ExpressionManagerprotected ExternalWorkerJobDataManagerprotected ExternalWorkerJobEntityManagerprotected FailedJobCommandFactoryprotected HistoryJobDataManagerprotected HistoryJobEntityManagerprotected Stringprotected Map<String, HistoryJobHandler> protected List<HistoryJobProcessor> protected HistoryJobServiceprotected InternalJobCompatibilityManagerprotected InternalJobManagerstatic final Stringstatic final Stringprotected JobDataManagerprotected JobEntityManagerprotected Stringprotected Map<String, JobHandler> protected JobManagerprotected InternalJobParentStateResolverprotected List<JobProcessor> protected JobServiceprotected SuspendedJobDataManagerprotected SuspendedJobEntityManagerprotected TimerJobDataManagerprotected TimerJobEntityManagerprotected TimerJobSchedulerprotected TimerJobServiceFields inherited from class AbstractServiceConfiguration
additionalEventDispatchActions, clock, configurators, enableEventDispatcher, engineName, eventDispatcher, eventListeners, idGenerator, logger, NO_TENANT_ID, objectMapper, typedEventListeners -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEnabledJobCategory(String jobCategory) addHistoryJobHandler(String type, HistoryJobHandler historyJobHandler) addJobHandler(String type, JobHandler jobHandler) intintinttools.jackson.databind.ObjectMapperprotected JobServiceConfigurationvoidinit()void////////////////////////////////////////////////////////voidvoidprotected voidsetAsyncExecutor(AsyncExecutor asyncExecutor) setAsyncExecutorNumberOfRetries(int asyncExecutorNumberOfRetries) setAsyncExecutorResetExpiredJobsMaxTimeout(int asyncExecutorResetExpiredJobsMaxTimeout) setAsyncHistoryExecutor(AsyncExecutor asyncHistoryExecutor) setAsyncHistoryExecutorNumberOfRetries(int asyncHistoryExecutorNumberOfRetries) setAsyncRunnableExecutionExceptionHandlers(List<AsyncRunnableExecutionExceptionHandler> asyncRunnableExecutionExceptionHandlers) setBusinessCalendarManager(BusinessCalendarManager businessCalendarManager) voidsetCommandExecutor(CommandExecutor commandExecutor) setDeadLetterJobDataManager(DeadLetterJobDataManager deadLetterJobDataManager) setDeadLetterJobEntityManager(DeadLetterJobEntityManager deadLetterJobEntityManager) voidsetEnabledJobCategories(List<String> enabledJobCategories) setExpressionManager(ExpressionManager expressionManager) setExternalWorkerJobDataManager(ExternalWorkerJobDataManager externalWorkerJobDataManager) setExternalWorkerJobEntityManager(ExternalWorkerJobEntityManager externalWorkerJobEntityManager) setFailedJobCommandFactory(FailedJobCommandFactory failedJobCommandFactory) setHistoryJobDataManager(HistoryJobDataManager historyJobDataManager) setHistoryJobEntityManager(HistoryJobEntityManager historyJobEntityManager) setHistoryJobExecutionScope(String historyJobExecutionScope) setHistoryJobHandlers(Map<String, HistoryJobHandler> historyJobHandlers) setHistoryJobProcessors(List<HistoryJobProcessor> historyJobProcessors) setHistoryJobService(HistoryJobService historyJobService) voidsetInternalJobCompatibilityManager(InternalJobCompatibilityManager internalJobCompatibilityManager) voidsetInternalJobManager(InternalJobManager internalJobManager) setJobDataManager(JobDataManager jobDataManager) setJobEntityManager(JobEntityManager jobEntityManager) setJobExecutionScope(String jobExecutionScope) setJobHandlers(Map<String, JobHandler> jobHandlers) voidsetJobManager(JobManager jobManager) voidsetJobParentStateResolver(InternalJobParentStateResolver jobParentStateResolver) setJobProcessors(List<JobProcessor> jobProcessors) setJobService(JobService jobService) setObjectMapper(tools.jackson.databind.ObjectMapper objectMapper) setSuspendedJobDataManager(SuspendedJobDataManager suspendedJobDataManager) setSuspendedJobEntityManager(SuspendedJobEntityManager suspendedJobEntityManager) setTimerJobDataManager(TimerJobDataManager timerJobDataManager) setTimerJobEntityManager(TimerJobEntityManager timerJobEntityManager) voidsetTimerJobScheduler(TimerJobScheduler timerJobScheduler) setTimerJobService(TimerJobService timerJobService) Methods inherited from class AbstractServiceConfiguration
addConfigurator, configuratorsAfterInit, configuratorsBeforeInit, getAdditionalEventDispatchActions, getClock, getConfigurators, getEngineName, getEventDispatcher, getEventListeners, getIdGenerator, getTypedEventListeners, initConfigurators, isEnableEventDispatcher, isEventDispatcherEnabled, setAdditionalEventDispatchActions, setClock, setConfigurators, setEnableEventDispatcher, setEngineName, setEventDispatcher, setEventListeners, setIdGenerator, setTypedEventListeners
-
Field Details
-
JOB_EXECUTION_SCOPE_ALL
- See Also:
-
JOB_EXECUTION_SCOPE_CMMN
- See Also:
-
jobService
-
timerJobService
-
historyJobService
-
jobManager
-
timerJobScheduler
-
jobDataManager
-
deadLetterJobDataManager
-
suspendedJobDataManager
-
timerJobDataManager
-
historyJobDataManager
-
externalWorkerJobDataManager
-
jobEntityManager
-
deadLetterJobEntityManager
-
suspendedJobEntityManager
-
timerJobEntityManager
-
historyJobEntityManager
-
externalWorkerJobEntityManager
-
commandExecutor
-
expressionManager
-
businessCalendarManager
-
internalJobManager
-
internalJobCompatibilityManager
-
jobParentStateResolver
-
asyncExecutor
-
asyncExecutorNumberOfRetries
protected int asyncExecutorNumberOfRetries -
asyncExecutorResetExpiredJobsMaxTimeout
protected int asyncExecutorResetExpiredJobsMaxTimeout -
jobExecutionScope
-
jobHandlers
-
failedJobCommandFactory
-
asyncRunnableExecutionExceptionHandlers
-
jobProcessors
-
enabledJobCategories
-
asyncHistoryExecutor
-
asyncHistoryExecutorNumberOfRetries
protected int asyncHistoryExecutorNumberOfRetries -
historyJobExecutionScope
-
historyJobHandlers
-
historyJobProcessors
-
-
Constructor Details
-
JobServiceConfiguration
-
-
Method Details
-
getService
- Specified by:
getServicein classAbstractServiceConfiguration<JobServiceConfiguration>
-
init
public void init() -
initTimerJobScheduler
protected void initTimerJobScheduler() -
initJobManager
public void initJobManager() -
initDataManagers
public void initDataManagers()//////////////////////////////////////////////////////// -
initEntityManagers
public void initEntityManagers() -
getIdentityLinkServiceConfiguration
-
getJobService
-
setJobService
-
getTimerJobService
-
setTimerJobService
-
getHistoryJobService
-
setHistoryJobService
-
getJobManager
-
setJobManager
-
getTimerJobScheduler
-
setTimerJobScheduler
-
getJobDataManager
-
setJobDataManager
-
getDeadLetterJobDataManager
-
setDeadLetterJobDataManager
public JobServiceConfiguration setDeadLetterJobDataManager(DeadLetterJobDataManager deadLetterJobDataManager) -
getSuspendedJobDataManager
-
setSuspendedJobDataManager
public JobServiceConfiguration setSuspendedJobDataManager(SuspendedJobDataManager suspendedJobDataManager) -
getTimerJobDataManager
-
setTimerJobDataManager
-
getHistoryJobDataManager
-
setHistoryJobDataManager
public JobServiceConfiguration setHistoryJobDataManager(HistoryJobDataManager historyJobDataManager) -
getExternalWorkerJobDataManager
-
setExternalWorkerJobDataManager
public JobServiceConfiguration setExternalWorkerJobDataManager(ExternalWorkerJobDataManager externalWorkerJobDataManager) -
getJobEntityManager
-
setJobEntityManager
-
getDeadLetterJobEntityManager
-
setDeadLetterJobEntityManager
public JobServiceConfiguration setDeadLetterJobEntityManager(DeadLetterJobEntityManager deadLetterJobEntityManager) -
getSuspendedJobEntityManager
-
setSuspendedJobEntityManager
public JobServiceConfiguration setSuspendedJobEntityManager(SuspendedJobEntityManager suspendedJobEntityManager) -
getTimerJobEntityManager
-
setTimerJobEntityManager
public JobServiceConfiguration setTimerJobEntityManager(TimerJobEntityManager timerJobEntityManager) -
getHistoryJobEntityManager
-
setHistoryJobEntityManager
public JobServiceConfiguration setHistoryJobEntityManager(HistoryJobEntityManager historyJobEntityManager) -
getExternalWorkerJobEntityManager
-
setExternalWorkerJobEntityManager
public JobServiceConfiguration setExternalWorkerJobEntityManager(ExternalWorkerJobEntityManager externalWorkerJobEntityManager) -
getCommandExecutor
-
setCommandExecutor
-
getInternalJobManager
-
setInternalJobManager
-
getInternalJobCompatibilityManager
-
setInternalJobCompatibilityManager
public void setInternalJobCompatibilityManager(InternalJobCompatibilityManager internalJobCompatibilityManager) -
getAsyncExecutor
-
setAsyncExecutor
-
getAsyncHistoryExecutor
-
setAsyncHistoryExecutor
-
getAsyncHistoryExecutorNumberOfRetries
public int getAsyncHistoryExecutorNumberOfRetries() -
setAsyncHistoryExecutorNumberOfRetries
public JobServiceConfiguration setAsyncHistoryExecutorNumberOfRetries(int asyncHistoryExecutorNumberOfRetries) -
getJobExecutionScope
-
setJobExecutionScope
-
getHistoryJobExecutionScope
-
setHistoryJobExecutionScope
-
getExpressionManager
-
setExpressionManager
-
getBusinessCalendarManager
-
setBusinessCalendarManager
public JobServiceConfiguration setBusinessCalendarManager(BusinessCalendarManager businessCalendarManager) -
getJobHandlers
-
setJobHandlers
-
addJobHandler
-
getFailedJobCommandFactory
-
setFailedJobCommandFactory
public JobServiceConfiguration setFailedJobCommandFactory(FailedJobCommandFactory failedJobCommandFactory) -
getAsyncRunnableExecutionExceptionHandlers
-
setAsyncRunnableExecutionExceptionHandlers
public JobServiceConfiguration setAsyncRunnableExecutionExceptionHandlers(List<AsyncRunnableExecutionExceptionHandler> asyncRunnableExecutionExceptionHandlers) -
getHistoryJobHandlers
-
setHistoryJobHandlers
public JobServiceConfiguration setHistoryJobHandlers(Map<String, HistoryJobHandler> historyJobHandlers) -
addHistoryJobHandler
public JobServiceConfiguration addHistoryJobHandler(String type, HistoryJobHandler historyJobHandler) -
getAsyncExecutorNumberOfRetries
public int getAsyncExecutorNumberOfRetries() -
setAsyncExecutorNumberOfRetries
-
getAsyncExecutorResetExpiredJobsMaxTimeout
public int getAsyncExecutorResetExpiredJobsMaxTimeout() -
setAsyncExecutorResetExpiredJobsMaxTimeout
public JobServiceConfiguration setAsyncExecutorResetExpiredJobsMaxTimeout(int asyncExecutorResetExpiredJobsMaxTimeout) -
getObjectMapper
public tools.jackson.databind.ObjectMapper getObjectMapper()- Overrides:
getObjectMapperin classAbstractServiceConfiguration<JobServiceConfiguration>
-
setObjectMapper
- Overrides:
setObjectMapperin classAbstractServiceConfiguration<JobServiceConfiguration>
-
getJobProcessors
-
setJobProcessors
-
getHistoryJobProcessors
-
setHistoryJobProcessors
public JobServiceConfiguration setHistoryJobProcessors(List<HistoryJobProcessor> historyJobProcessors) -
setJobParentStateResolver
-
getJobParentStateResolver
-
getEnabledJobCategories
-
setEnabledJobCategories
-
addEnabledJobCategory
-