class JobTask
extends java.util.TimerTask
Scheduler.timer.
When a job is executed, it will delegate the job execution to the
job processor, which will execute the job using the server's
context.
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<java.lang.String,java.lang.String> |
env
The environment properties (used by processes).
|
private java.lang.String |
jobName
The job name.
|
private static CentralLogger |
LOG
Logger.
|
| Constructor and Description |
|---|
JobTask(java.lang.String jobName,
java.util.Map<java.lang.String,java.lang.String> env)
Create a new job task to be registered with the
Scheduler.timer. |
| Modifier and Type | Method and Description |
|---|---|
void |
run()
Execute a the job with the given
name. |
private static final CentralLogger LOG
private final java.lang.String jobName
private final java.util.Map<java.lang.String,java.lang.String> env
public JobTask(java.lang.String jobName,
java.util.Map<java.lang.String,java.lang.String> env)
Scheduler.timer.jobName - The job name.env - Map of environment properties, in the key=value form. For processes,
these will be passed as JVM args.public void run()
name.run in interface java.lang.Runnablerun in class java.util.TimerTask