Package com.avoka.fc.core.job
Class TransactionProcessingJob
- java.lang.Object
-
- com.avoka.fc.core.job.AbstractJob
-
- com.avoka.fc.core.job.BaseJob
-
- com.avoka.fc.core.job.TransactionProcessingJob
-
- All Implemented Interfaces:
org.quartz.InterruptableJob
,org.quartz.Job
public class TransactionProcessingJob extends BaseJob
A job that calls the default service of typeServiceDefinition.SERVICE_TYPE_TRANSACTION_PROCESSOR
- Since:
- 4.1.0
-
-
Field Summary
Fields Modifier and Type Field Description static String
JOB_NAME
The name of the job.-
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
Constructors Constructor Description TransactionProcessingJob()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
executeJob()
Subclasses should override this method to provide their functionality.void
interrupt()
Interrupt the execution of the transaction processor job.ErrorLog
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, isInterrupted
-
-
-
-
Field Detail
-
JOB_NAME
public static final String JOB_NAME
The name of the job. Note: This must be the same as the name used in core-config.xml- See Also:
- Constant Field Values
-
-
Method Detail
-
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
- See Also:
AbstractJob.executeJob()
-
logException
public ErrorLog logException(Throwable error)
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
- Since:
- 4.1.0
-
interrupt
public void interrupt()
Interrupt the execution of the transaction processor job.- Specified by:
interrupt
in interfaceorg.quartz.InterruptableJob
- Overrides:
interrupt
in classAbstractJob
- See Also:
InterruptableJob.interrupt()
-
-