public class JobServiceConfiguration extends AbstractServiceConfiguration
JobServiceConfiguration is not shared between engines and instantiated for each engine.additionalEventDispatchActions, clock, enableEventDispatcher, eventDispatcher, eventListeners, historyLevel, NO_TENANT_ID, objectMapper, typedEventListeners| Constructor and Description |
|---|
JobServiceConfiguration() |
getAdditionalEventDispatchActions, getClock, getEventDispatcher, getEventListeners, getHistoryLevel, getTypedEventListeners, isEnableEventDispatcher, setAdditionalEventDispatchActions, setClock, setEnableEventDispatcher, setEventDispatcher, setEventListeners, setHistoryLevel, setTypedEventListenersprotected static final org.slf4j.Logger LOGGER
public static String JOB_EXECUTION_SCOPE_ALL
public static String JOB_EXECUTION_SCOPE_CMMN
protected JobService jobService
protected TimerJobService timerJobService
protected HistoryJobService historyJobService
protected JobManager jobManager
protected JobDataManager jobDataManager
protected DeadLetterJobDataManager deadLetterJobDataManager
protected SuspendedJobDataManager suspendedJobDataManager
protected TimerJobDataManager timerJobDataManager
protected HistoryJobDataManager historyJobDataManager
protected JobByteArrayDataManager jobByteArrayDataManager
protected JobEntityManager jobEntityManager
protected DeadLetterJobEntityManager deadLetterJobEntityManager
protected SuspendedJobEntityManager suspendedJobEntityManager
protected TimerJobEntityManager timerJobEntityManager
protected HistoryJobEntityManager historyJobEntityManager
protected JobByteArrayEntityManager jobByteArrayEntityManager
protected CommandExecutor commandExecutor
protected ExpressionManager expressionManager
protected BusinessCalendarManager businessCalendarManager
protected InternalJobManager internalJobManager
protected InternalJobCompatibilityManager internalJobCompatibilityManager
protected InternalJobParentStateResolver jobParentStateResolver
protected AsyncExecutor asyncExecutor
protected int asyncExecutorNumberOfRetries
protected int asyncExecutorResetExpiredJobsMaxTimeout
protected String jobExecutionScope
protected Map<String,JobHandler> jobHandlers
protected FailedJobCommandFactory failedJobCommandFactory
protected List<AsyncRunnableExecutionExceptionHandler> asyncRunnableExecutionExceptionHandlers
protected List<JobProcessor> jobProcessors
protected AsyncExecutor asyncHistoryExecutor
protected int asyncHistoryExecutorNumberOfRetries
protected String historyJobExecutionScope
protected Map<String,HistoryJobHandler> historyJobHandlers
protected List<HistoryJobProcessor> historyJobProcessors
protected String jobTypeAsyncHistory
protected String jobTypeAsyncHistoryZipped
protected boolean asyncHistoryJsonGzipCompressionEnabled
protected boolean asyncHistoryJsonGroupingEnabled
protected boolean asyncHistoryExecutorMessageQueueMode
protected int asyncHistoryJsonGroupingThreshold
public void init()
public boolean isHistoryLevelAtLeast(HistoryLevel level)
isHistoryLevelAtLeast in class AbstractServiceConfigurationpublic boolean isHistoryEnabled()
isHistoryEnabled in class AbstractServiceConfigurationpublic void initJobManager()
public void initDataManagers()
public void initEntityManagers()
public JobServiceConfiguration getIdentityLinkServiceConfiguration()
public JobService getJobService()
public JobServiceConfiguration setJobService(JobService jobService)
public TimerJobService getTimerJobService()
public JobServiceConfiguration setTimerJobService(TimerJobService timerJobService)
public HistoryJobService getHistoryJobService()
public JobServiceConfiguration setHistoryJobService(HistoryJobService historyJobService)
public JobManager getJobManager()
public void setJobManager(JobManager jobManager)
public JobDataManager getJobDataManager()
public JobServiceConfiguration setJobDataManager(JobDataManager jobDataManager)
public DeadLetterJobDataManager getDeadLetterJobDataManager()
public JobServiceConfiguration setDeadLetterJobDataManager(DeadLetterJobDataManager deadLetterJobDataManager)
public SuspendedJobDataManager getSuspendedJobDataManager()
public JobServiceConfiguration setSuspendedJobDataManager(SuspendedJobDataManager suspendedJobDataManager)
public TimerJobDataManager getTimerJobDataManager()
public JobServiceConfiguration setTimerJobDataManager(TimerJobDataManager timerJobDataManager)
public HistoryJobDataManager getHistoryJobDataManager()
public JobServiceConfiguration setHistoryJobDataManager(HistoryJobDataManager historyJobDataManager)
public JobByteArrayDataManager getJobByteArrayDataManager()
public JobServiceConfiguration setJobByteArrayDataManager(JobByteArrayDataManager jobByteArrayDataManager)
public JobEntityManager getJobEntityManager()
public JobServiceConfiguration setJobEntityManager(JobEntityManager jobEntityManager)
public DeadLetterJobEntityManager getDeadLetterJobEntityManager()
public JobServiceConfiguration setDeadLetterJobEntityManager(DeadLetterJobEntityManager deadLetterJobEntityManager)
public SuspendedJobEntityManager getSuspendedJobEntityManager()
public JobServiceConfiguration setSuspendedJobEntityManager(SuspendedJobEntityManager suspendedJobEntityManager)
public TimerJobEntityManager getTimerJobEntityManager()
public JobServiceConfiguration setTimerJobEntityManager(TimerJobEntityManager timerJobEntityManager)
public HistoryJobEntityManager getHistoryJobEntityManager()
public JobServiceConfiguration setHistoryJobEntityManager(HistoryJobEntityManager historyJobEntityManager)
public JobByteArrayEntityManager getJobByteArrayEntityManager()
public JobServiceConfiguration setJobByteArrayEntityManager(JobByteArrayEntityManager jobByteArrayEntityManager)
public CommandExecutor getCommandExecutor()
public void setCommandExecutor(CommandExecutor commandExecutor)
public InternalJobManager getInternalJobManager()
public void setInternalJobManager(InternalJobManager internalJobManager)
public InternalJobCompatibilityManager getInternalJobCompatibilityManager()
public void setInternalJobCompatibilityManager(InternalJobCompatibilityManager internalJobCompatibilityManager)
public AsyncExecutor getAsyncExecutor()
public JobServiceConfiguration setAsyncExecutor(AsyncExecutor asyncExecutor)
public AsyncExecutor getAsyncHistoryExecutor()
public JobServiceConfiguration setAsyncHistoryExecutor(AsyncExecutor asyncHistoryExecutor)
public int getAsyncHistoryExecutorNumberOfRetries()
public JobServiceConfiguration setAsyncHistoryExecutorNumberOfRetries(int asyncHistoryExecutorNumberOfRetries)
public String getJobExecutionScope()
public JobServiceConfiguration setJobExecutionScope(String jobExecutionScope)
public String getHistoryJobExecutionScope()
public JobServiceConfiguration setHistoryJobExecutionScope(String historyJobExecutionScope)
public ExpressionManager getExpressionManager()
public JobServiceConfiguration setExpressionManager(ExpressionManager expressionManager)
public BusinessCalendarManager getBusinessCalendarManager()
public JobServiceConfiguration setBusinessCalendarManager(BusinessCalendarManager businessCalendarManager)
public Map<String,JobHandler> getJobHandlers()
public JobServiceConfiguration setJobHandlers(Map<String,JobHandler> jobHandlers)
public JobServiceConfiguration addJobHandler(String type, JobHandler jobHandler)
public FailedJobCommandFactory getFailedJobCommandFactory()
public JobServiceConfiguration setFailedJobCommandFactory(FailedJobCommandFactory failedJobCommandFactory)
public List<AsyncRunnableExecutionExceptionHandler> getAsyncRunnableExecutionExceptionHandlers()
public JobServiceConfiguration setAsyncRunnableExecutionExceptionHandlers(List<AsyncRunnableExecutionExceptionHandler> asyncRunnableExecutionExceptionHandlers)
public Map<String,HistoryJobHandler> getHistoryJobHandlers()
public JobServiceConfiguration setHistoryJobHandlers(Map<String,HistoryJobHandler> historyJobHandlers)
public JobServiceConfiguration addHistoryJobHandler(String type, HistoryJobHandler historyJobHandler)
public JobServiceConfiguration mergeHistoryJobHandler(HistoryJobHandler historyJobHandler)
HistoryJobHandler under the provided type and checks for
existing default and internal HistoryJobHandler instances to be of the same class.
If no such instances are found, a addHistoryJobHandler(String, HistoryJobHandler) is done.
If such instances are found, they are merged, meaning the HistoryJsonTransformer instances of the provided HistoryJobHandler
are copied into the already registered HistoryJobHandler and vice versa.
If a type is already registered, the provided history job handler is simply ignored.
This is especially useful when multiple engines (e.g. bpmn and cmmn) share an async history executor.
In this case, both AsyncHistoryJobHandler instances should be able to handle history jobs from any engine.protected void copyHistoryJsonTransformers(AsyncHistoryJobHandler source, AsyncHistoryJobHandler target)
public int getAsyncExecutorNumberOfRetries()
public JobServiceConfiguration setAsyncExecutorNumberOfRetries(int asyncExecutorNumberOfRetries)
public int getAsyncExecutorResetExpiredJobsMaxTimeout()
public JobServiceConfiguration setAsyncExecutorResetExpiredJobsMaxTimeout(int asyncExecutorResetExpiredJobsMaxTimeout)
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
getObjectMapper in class AbstractServiceConfigurationpublic JobServiceConfiguration setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
setObjectMapper in class AbstractServiceConfigurationpublic List<JobProcessor> getJobProcessors()
public JobServiceConfiguration setJobProcessors(List<JobProcessor> jobProcessors)
public List<HistoryJobProcessor> getHistoryJobProcessors()
public JobServiceConfiguration setHistoryJobProcessors(List<HistoryJobProcessor> historyJobProcessors)
public void setJobParentStateResolver(InternalJobParentStateResolver jobParentStateResolver)
public InternalJobParentStateResolver getJobParentStateResolver()
public String getJobTypeAsyncHistory()
public void setJobTypeAsyncHistory(String jobTypeAsyncHistory)
public String getJobTypeAsyncHistoryZipped()
public void setJobTypeAsyncHistoryZipped(String jobTypeAsyncHistoryZipped)
public boolean isAsyncHistoryJsonGzipCompressionEnabled()
public void setAsyncHistoryJsonGzipCompressionEnabled(boolean asyncHistoryJsonGzipCompressionEnabled)
public boolean isAsyncHistoryJsonGroupingEnabled()
public void setAsyncHistoryJsonGroupingEnabled(boolean asyncHistoryJsonGroupingEnabled)
public boolean isAsyncHistoryExecutorMessageQueueMode()
public void setAsyncHistoryExecutorMessageQueueMode(boolean asyncHistoryExecutorMessageQueueMode)
public int getAsyncHistoryJsonGroupingThreshold()
public void setAsyncHistoryJsonGroupingThreshold(int asyncHistoryJsonGroupingThreshold)
Copyright © 2018 Flowable. All rights reserved.