public class JobContext extends Object
| Modifier and Type | Field and Description |
|---|---|
Map<String,Object> |
map
The Map holding key/value pairs
|
| Constructor and Description |
|---|
JobContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
addQuartzContext(JobExecutionContext jobExecutionContext)
Add all the mappings from the JobExecutionContext to the JobContext
|
<T> T |
get(String key)
Get a value from a key out of the JobContext
|
String |
getCronExpressionName()
Convenience method to get the Cron Expression
|
String |
getJobName()
Convenience method to get the Job Name
|
<T> T |
getRequiredValue(String key)
Get a required value from a key out of the Job Context
|
String |
getTriggerName()
Convenience method to get the Trigger Name
|
void |
put(String key,
Object value)
Add a key/value pair to the JobContext
|
public void addQuartzContext(JobExecutionContext jobExecutionContext)
jobExecutionContext - public void put(String key, Object value)
key - value - public <T> T get(String key)
key - public <T> T getRequiredValue(String key)
key - public String getJobName()
public String getTriggerName()
public String getCronExpressionName()
Copyright © 2011–2017 Knowm Inc.. All rights reserved.