@ThreadSafe public abstract class AbstractScopeAwareJob extends com.helger.schedule.job.AbstractJob
IJob implementation that handles request scopes correctly.
This is required, because each scheduled job runs in its own thread so that
no default ScopeManager information would be available.| Constructor and Description |
|---|
AbstractScopeAwareJob() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterExecute(com.helger.quartz.JobDataMap aJobDataMap,
com.helger.quartz.IJobExecutionContext aContext,
com.helger.commons.state.ESuccess eExecSuccess) |
protected void |
afterExecuteInScope(com.helger.quartz.JobDataMap aJobDataMap,
com.helger.quartz.IJobExecutionContext aContext,
com.helger.commons.state.ESuccess eExecSuccess)
Called after the job gets executed.
|
protected void |
beforeExecute(com.helger.quartz.JobDataMap aJobDataMap,
com.helger.quartz.IJobExecutionContext aContext) |
protected void |
beforeExecuteInScope(com.helger.quartz.JobDataMap aJobDataMap,
com.helger.quartz.IJobExecutionContext aContext)
Called before the job gets executed.
|
protected com.helger.servlet.mock.MockHttpServletRequest |
createMockHttpServletRequest() |
protected com.helger.servlet.mock.MockHttpServletResponse |
createMockHttpServletResponse() |
@Nonnull @OverrideOnDemand protected com.helger.servlet.mock.MockHttpServletRequest createMockHttpServletRequest()
OfflineHttpServletRequest is created.@Nonnull @OverrideOnDemand protected com.helger.servlet.mock.MockHttpServletResponse createMockHttpServletResponse()
MockHttpServletResponse is created.@OverrideOnDemand protected void beforeExecuteInScope(@Nonnull com.helger.quartz.JobDataMap aJobDataMap, @Nonnull com.helger.quartz.IJobExecutionContext aContext)
aJobDataMap - The current job data map. Never null.aContext - The current job execution context. Never null.@OverrideOnDemand @OverridingMethodsMustInvokeSuper protected void beforeExecute(@Nonnull com.helger.quartz.JobDataMap aJobDataMap, @Nonnull com.helger.quartz.IJobExecutionContext aContext)
beforeExecute in class com.helger.schedule.job.AbstractJob@OverrideOnDemand protected void afterExecuteInScope(@Nonnull com.helger.quartz.JobDataMap aJobDataMap, @Nonnull com.helger.quartz.IJobExecutionContext aContext, @Nonnull com.helger.commons.state.ESuccess eExecSuccess)
aJobDataMap - The current job data map. Never null.aContext - The current job execution context. Never null.eExecSuccess - The execution success state. Never null.@OverrideOnDemand @OverridingMethodsMustInvokeSuper protected void afterExecute(@Nonnull com.helger.quartz.JobDataMap aJobDataMap, @Nonnull com.helger.quartz.IJobExecutionContext aContext, @Nonnull com.helger.commons.state.ESuccess eExecSuccess)
afterExecute in class com.helger.schedule.job.AbstractJobCopyright © 2014–2019 Philip Helger. All rights reserved.