Package org.knowm.sundial
Class JobContext
java.lang.Object
org.knowm.sundial.JobContext
The JobContext is a Map that contains key value pairs from the Quartz Job's JobDataMap object and
any key/value pairs the user wishes to add.
- Author:
- timothy.molter
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addQuartzContext
(JobExecutionContext jobExecutionContext) Add all the mappings from the JobExecutionContext to the JobContext<T> T
Get a value from a key out of the JobContextConvenience method to get the Cron ExpressionConvenience method to get the Job Name<T> T
getRequiredValue
(String key) Get a required value from a key out of the Job ContextConvenience method to get the Trigger Namevoid
Add a key/value pair to the JobContext
-
Field Details
-
map
The Map holding key/value pairs
-
-
Constructor Details
-
JobContext
public JobContext()
-
-
Method Details
-
addQuartzContext
Add all the mappings from the JobExecutionContext to the JobContext- Parameters:
jobExecutionContext
-
-
put
Add a key/value pair to the JobContext- Parameters:
key
-value
-
-
get
Get a value from a key out of the JobContext- Parameters:
key
-- Returns:
-
getRequiredValue
Get a required value from a key out of the Job Context- Parameters:
key
-- Returns:
-
getJobName
Convenience method to get the Job Name- Returns:
-
getTriggerName
Convenience method to get the Trigger Name- Returns:
-
getCronExpressionName
Convenience method to get the Cron Expression- Returns:
-