Package com.helger.photon.core.job.app
Class CheckThreadDeadlockJob
java.lang.Object
com.helger.schedule.job.AbstractJob
com.helger.web.scope.util.AbstractScopeAwareJob
com.helger.photon.core.job.app.CheckThreadDeadlockJob
- All Implemented Interfaces:
com.helger.quartz.IJob
@DisallowConcurrentExecution
public final class CheckThreadDeadlockJob
extends com.helger.web.scope.util.AbstractScopeAwareJob
A Quartz job to be scheduled to check for thread dead locks.
- Author:
- Philip Helger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
onExecute
(com.helger.quartz.JobDataMap aJobDataMap, com.helger.quartz.IJobExecutionContext aContext) static com.helger.quartz.TriggerKey
schedule
(com.helger.quartz.SimpleScheduleBuilder aScheduleBuilder) Call this method to schedule the deadlock detection job.Methods inherited from class com.helger.web.scope.util.AbstractScopeAwareJob
afterExecute, afterExecuteInScope, beforeExecute, beforeExecuteInScope, createMockHttpServletRequest, createMockHttpServletResponse
Methods inherited from class com.helger.schedule.job.AbstractJob
exceptionCallbacks, execute, triggerCustomExceptionHandler
-
Constructor Details
-
CheckThreadDeadlockJob
public CheckThreadDeadlockJob()Public no argument constructor must be available.
-
-
Method Details
-
onExecute
protected void onExecute(@Nonnull com.helger.quartz.JobDataMap aJobDataMap, @Nonnull com.helger.quartz.IJobExecutionContext aContext) throws com.helger.quartz.JobExecutionException - Specified by:
onExecute
in classcom.helger.schedule.job.AbstractJob
- Throws:
com.helger.quartz.JobExecutionException
-
schedule
@Nonnull public static com.helger.quartz.TriggerKey schedule(@Nonnull com.helger.quartz.SimpleScheduleBuilder aScheduleBuilder) Call this method to schedule the deadlock detection job.- Parameters:
aScheduleBuilder
- The schedule builder to be used. May not benull
. Example:SimpleScheduleBuilder.repeatMinutelyForever (2)
- Returns:
- The created trigger key for further usage. Never
null
.
-