Package com.avoka.fc.core.job
Class StatusManagementJob
java.lang.Object
com.avoka.fc.core.job.AbstractJob
com.avoka.fc.core.job.BaseJob
com.avoka.fc.core.job.StatusManagementJob
- All Implemented Interfaces:
org.quartz.InterruptableJob
,org.quartz.Job
Status management Job that execute scheduled status changes.
- Since:
- 22.04.0
-
Field Summary
Fields inherited from class com.avoka.fc.core.job.AbstractJob
JOB_CONTEXT_PARAM, JOB_GROUP_BACKGROUND, JOB_GROUP_MEMORY, logExecution, MANAGER_LISTENERS, SERVLET_CONTEXT, SPRING_CONTEXT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Subclasses should override this method to provide their functionality.logException
(Throwable error) Log the exception to the ErrorLog if an error occurs performing the job and send an System Alert email.Methods inherited from class com.avoka.fc.core.job.AbstractJob
execute, getContext, getContextParam, getDataContext, getErrorLogService, getLogger, getServletContext, interrupt, isInterrupted
-
Field Details
-
JOB_NAME
The name of the job.- See Also:
-
-
Constructor Details
-
StatusManagementJob
public StatusManagementJob()
-
-
Method Details
-
executeJob
public void executeJob()Description copied from class:AbstractJob
Subclasses should override this method to provide their functionality. A DataContext object will be bound to the thread executing this task. Any uncommitted changes to the DataContext will be automatically rolled back when this method completes.- Specified by:
executeJob
in classAbstractJob
-
logException
Log the exception to the ErrorLog if an error occurs performing the job and send an System Alert email.- Overrides:
logException
in classAbstractJob
- Parameters:
error
- the exception to log (required)- Returns:
- the new ErrorLog record
-