Package org.flowable.job.service
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 AsyncExecutor
protected int
protected int
protected AsyncExecutor
protected int
protected List<AsyncRunnableExecutionExceptionHandler>
protected BusinessCalendarManager
protected CommandExecutor
protected DeadLetterJobDataManager
protected DeadLetterJobEntityManager
protected ExpressionManager
protected ExternalWorkerJobDataManager
protected ExternalWorkerJobEntityManager
protected FailedJobCommandFactory
protected HistoryJobDataManager
protected HistoryJobEntityManager
protected String
protected Map<String,
HistoryJobHandler> protected List<HistoryJobProcessor>
protected HistoryJobService
protected InternalJobCompatibilityManager
protected InternalJobManager
static final String
static final String
protected JobDataManager
protected JobEntityManager
protected String
protected Map<String,
JobHandler> protected JobManager
protected InternalJobParentStateResolver
protected List<JobProcessor>
protected JobService
protected SuspendedJobDataManager
protected SuspendedJobEntityManager
protected TimerJobDataManager
protected TimerJobEntityManager
protected TimerJobScheduler
protected TimerJobService
Fields inherited from class org.flowable.common.engine.impl.AbstractServiceConfiguration
additionalEventDispatchActions, clock, configurators, enableEventDispatcher, engineName, eventDispatcher, eventListeners, idGenerator, logger, NO_TENANT_ID, objectMapper, typedEventListeners
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addEnabledJobCategory
(String jobCategory) addHistoryJobHandler
(String type, HistoryJobHandler historyJobHandler) addJobHandler
(String type, JobHandler jobHandler) int
int
int
com.fasterxml.jackson.databind.ObjectMapper
protected JobServiceConfiguration
void
init()
void
void
void
protected void
setAsyncExecutor
(AsyncExecutor asyncExecutor) setAsyncExecutorNumberOfRetries
(int asyncExecutorNumberOfRetries) setAsyncExecutorResetExpiredJobsMaxTimeout
(int asyncExecutorResetExpiredJobsMaxTimeout) setAsyncHistoryExecutor
(AsyncExecutor asyncHistoryExecutor) setAsyncHistoryExecutorNumberOfRetries
(int asyncHistoryExecutorNumberOfRetries) setAsyncRunnableExecutionExceptionHandlers
(List<AsyncRunnableExecutionExceptionHandler> asyncRunnableExecutionExceptionHandlers) setBusinessCalendarManager
(BusinessCalendarManager businessCalendarManager) void
setCommandExecutor
(CommandExecutor commandExecutor) setDeadLetterJobDataManager
(DeadLetterJobDataManager deadLetterJobDataManager) setDeadLetterJobEntityManager
(DeadLetterJobEntityManager deadLetterJobEntityManager) void
setEnabledJobCategories
(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) void
setInternalJobCompatibilityManager
(InternalJobCompatibilityManager internalJobCompatibilityManager) void
setInternalJobManager
(InternalJobManager internalJobManager) setJobDataManager
(JobDataManager jobDataManager) setJobEntityManager
(JobEntityManager jobEntityManager) setJobExecutionScope
(String jobExecutionScope) setJobHandlers
(Map<String, JobHandler> jobHandlers) void
setJobManager
(JobManager jobManager) void
setJobParentStateResolver
(InternalJobParentStateResolver jobParentStateResolver) setJobProcessors
(List<JobProcessor> jobProcessors) setJobService
(JobService jobService) setObjectMapper
(com.fasterxml.jackson.databind.ObjectMapper objectMapper) setSuspendedJobDataManager
(SuspendedJobDataManager suspendedJobDataManager) setSuspendedJobEntityManager
(SuspendedJobEntityManager suspendedJobEntityManager) setTimerJobDataManager
(TimerJobDataManager timerJobDataManager) setTimerJobEntityManager
(TimerJobEntityManager timerJobEntityManager) void
setTimerJobScheduler
(TimerJobScheduler timerJobScheduler) setTimerJobService
(TimerJobService timerJobService) Methods inherited from class org.flowable.common.engine.impl.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:
getService
in 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 com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()- Overrides:
getObjectMapper
in classAbstractServiceConfiguration<JobServiceConfiguration>
-
setObjectMapper
public JobServiceConfiguration setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) - Overrides:
setObjectMapper
in classAbstractServiceConfiguration<JobServiceConfiguration>
-
getJobProcessors
-
setJobProcessors
-
getHistoryJobProcessors
-
setHistoryJobProcessors
public JobServiceConfiguration setHistoryJobProcessors(List<HistoryJobProcessor> historyJobProcessors) -
setJobParentStateResolver
-
getJobParentStateResolver
-
getEnabledJobCategories
-
setEnabledJobCategories
-
addEnabledJobCategory
-