public abstract class AbstractSystemJob
extends org.springframework.scheduling.quartz.QuartzJobBean
| Modifier and Type | Field and Description |
|---|---|
protected ConfigurationHelper |
configurationHelper |
static String |
CRON_TRIGGER_SUFFIX |
protected Map<String,String> |
parameters |
static String |
RUN_ONCE_TRIGGER_SUFFIX |
static String |
SYSTEM_JOB_PARAMETERS |
| Constructor and Description |
|---|
AbstractSystemJob() |
| Modifier and Type | Method and Description |
|---|---|
abstract String |
getCronExpression()
Gets a cron expression for the system job.
|
abstract org.quartz.JobDataMap |
getJobDataMap()
Gets a job data map.
|
protected org.quartz.JobDataMap |
getJobDataMap(ConfigurationValue... configurationValues)
Returns a job data map that contains a single hash map that is loaded with name-value pairs as per specified list of configuration values.
|
org.quartz.JobDataMap |
getJobDataMap(List<Parameter> parameters)
Returns a job data map that contains a single hash map that is loaded with name-value pairs as per specified list of parameters.
|
protected org.quartz.JobDataMap |
getJobDataMapWithoutParameters()
Returns a job data map that contains a single hash map without any parameters.
|
void |
setParameters(Map<String,String> parameters)
Setter called after a system job is instantiated with the value from the JobDetailFactoryBean.
|
abstract void |
validateParameters(List<Parameter> parameters)
Validates parameters passed to the system job.
|
public static final String SYSTEM_JOB_PARAMETERS
public static final String CRON_TRIGGER_SUFFIX
public static final String RUN_ONCE_TRIGGER_SUFFIX
@Autowired protected ConfigurationHelper configurationHelper
public void setParameters(Map<String,String> parameters)
public abstract void validateParameters(List<Parameter> parameters)
parameters - the list of parameters to be validatedpublic abstract String getCronExpression()
public abstract org.quartz.JobDataMap getJobDataMap()
public org.quartz.JobDataMap getJobDataMap(List<Parameter> parameters)
parameters - the list of parametersprotected org.quartz.JobDataMap getJobDataMapWithoutParameters()
protected org.quartz.JobDataMap getJobDataMap(ConfigurationValue... configurationValues)
configurationValues - the list of configuration valuesCopyright © 2019. All rights reserved.