Class HvlScheduledQuartzJob
java.lang.Object
org.springframework.scheduling.quartz.QuartzJobBean
tr.com.havelsan.javarch.report.quartz.context.scheduling.job.HvlScheduledQuartzJob
- All Implemented Interfaces:
org.quartz.Job
public abstract class HvlScheduledQuartzJob
extends org.springframework.scheduling.quartz.QuartzJobBean
The type is a Quartz job bean which is used to execute job instance.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Integer
The constant JOB_EXECUTION_MAX_RETRY_COUNT.protected static final org.slf4j.Logger
The constant LOGGER. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Allow concurrent execution boolean.protected final void
executeInternal
(org.quartz.JobExecutionContext context) protected abstract void
executeJobInstance
(org.quartz.JobExecutionContext context) Execute job instance.protected final <T> Optional<T>
getJobExecutionData
(String jobDataKey, Class<T> jobDataTypeClass, org.quartz.JobExecutionContext context) Gets job execution data.protected final <T> T
getJobExecutionData
(org.quartz.JobExecutionContext context, String jobDataKey, Class<T> jobDataTypeClass) Gets job execution data.protected abstract String
jobName()
Job name string.protected abstract boolean
Retry when on error boolean.protected final String
Scheduler name string.Methods inherited from class org.springframework.scheduling.quartz.QuartzJobBean
execute
-
Field Details
-
LOGGER
protected static final org.slf4j.Logger LOGGERThe constant LOGGER. -
JOB_EXECUTION_MAX_RETRY_COUNT
The constant JOB_EXECUTION_MAX_RETRY_COUNT.
-
-
Constructor Details
-
HvlScheduledQuartzJob
public HvlScheduledQuartzJob()
-
-
Method Details
-
jobName
Job name string.- Returns:
- the string
-
retryWhenOnError
protected abstract boolean retryWhenOnError()Retry when on error boolean.- Returns:
- the boolean
-
executeJobInstance
protected abstract void executeJobInstance(org.quartz.JobExecutionContext context) Execute job instance.- Parameters:
context
- the context
-
schedulerName
Scheduler name string.- Returns:
- the string
-
executeInternal
protected final void executeInternal(org.quartz.JobExecutionContext context) throws org.quartz.JobExecutionException - Specified by:
executeInternal
in classorg.springframework.scheduling.quartz.QuartzJobBean
- Throws:
org.quartz.JobExecutionException
-
getJobExecutionData
protected final <T> T getJobExecutionData(org.quartz.JobExecutionContext context, String jobDataKey, Class<T> jobDataTypeClass) Gets job execution data.- Type Parameters:
T
- the type parameter- Parameters:
context
- the contextjobDataKey
- the job data keyjobDataTypeClass
- the job data type class- Returns:
- the job execution data
-
getJobExecutionData
protected final <T> Optional<T> getJobExecutionData(String jobDataKey, Class<T> jobDataTypeClass, org.quartz.JobExecutionContext context) Gets job execution data.- Type Parameters:
T
- the type parameter- Parameters:
jobDataKey
- the job data keyjobDataTypeClass
- the job data type classcontext
- the context- Returns:
- the job execution data
-
allowConcurrentExecution
protected boolean allowConcurrentExecution()Allow concurrent execution boolean.- Returns:
- the boolean
-