public class ConcurrentJobWrapper extends Object
ScheduledJobInvocationContext as a single argument.| Modifier and Type | Field and Description |
|---|---|
static String |
DATAMAP_IS_CLUSTERED
Key to the job data map that indicates if the job is clustered or not.
|
static String |
DATAMAP_IS_CONCURRENT
Key to the job data map that indicates if the job is concurrent or not.
|
static String |
DATAMAP_JOB_CLASS
Key to the job data map that indicates which plugin component class should be instantiated
in order to process the job.
|
static String |
DATAMAP_JOB_ID
Key to the job data map that indicates the ID of the job.
|
static String |
DATAMAP_JOB_METHOD_NAME
Key to the job data map that indicates which method on the job class should be invoked
to run the job.
|
static String |
DATAMAP_PLUGIN_NAME
Key to the job data map that indicates the plugin that scheduled the job.
|
static String |
DATAMAP_PLUGIN_TYPE
Key to the job data map that indicates the type of plugin that scheduled the job.
|
static String |
DATAMAP_SCHEDULE_TRIGGER
Key to the job data map that indicates how the schedule is triggered.
|
static String |
DATAMAP_SCHEDULE_TYPE
Key to the job data map that indicates what kind of schedule triggered the job
|
| Constructor and Description |
|---|
ConcurrentJobWrapper() |
| Modifier and Type | Method and Description |
|---|---|
protected ScheduledJobInvocationContext |
createContext(ScheduledJobDefinition jobDefinition,
ServerPluginContext pluginContext,
ServerPluginComponent serverPluginComponent,
Map<String,String> jobData) |
void |
execute(org.quartz.JobExecutionContext context)
This is the method that quartz calls when the schedule has triggered.
|
protected String |
logMsg(String pluginName,
Object pluginType,
String jobId,
String msg,
Throwable t) |
protected void |
throwJobExecutionException(String pluginName,
Object pluginType,
String jobId,
String errorMsg,
Throwable t) |
public static final String DATAMAP_PLUGIN_NAME
public static final String DATAMAP_PLUGIN_TYPE
public static final String DATAMAP_JOB_ID
AbstractTypeServerPluginContainer#scheduleJob(ScheduledJobDefinition, String)public static final String DATAMAP_JOB_CLASS
public static final String DATAMAP_JOB_METHOD_NAME
public static final String DATAMAP_SCHEDULE_TYPE
public static final String DATAMAP_SCHEDULE_TRIGGER
type of schedule.
For example, a cron schedule type has a schedule trigger that is a cron expression.
A periodic schedule type has a schedule trigger that is a time period, in milliseconds.public static final String DATAMAP_IS_CONCURRENT
public static final String DATAMAP_IS_CLUSTERED
protected ScheduledJobInvocationContext createContext(ScheduledJobDefinition jobDefinition, ServerPluginContext pluginContext, ServerPluginComponent serverPluginComponent, Map<String,String> jobData)
public void execute(org.quartz.JobExecutionContext context)
throws org.quartz.JobExecutionException
execute in interface org.quartz.Joborg.quartz.JobExecutionExceptionScheduledJob#execute(String, Properties)protected void throwJobExecutionException(String pluginName, Object pluginType, String jobId, String errorMsg, Throwable t) throws org.quartz.JobExecutionException
org.quartz.JobExecutionExceptionCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.