Class JobContext

java.lang.Object
org.knowm.sundial.JobContext

public class JobContext extends Object
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 Details

  • Constructor Details

    • JobContext

      public JobContext()
  • Method Details

    • addQuartzContext

      public void addQuartzContext(JobExecutionContext jobExecutionContext)
      Add all the mappings from the JobExecutionContext to the JobContext
      Parameters:
      jobExecutionContext -
    • put

      public void put(String key, Object value)
      Add a key/value pair to the JobContext
      Parameters:
      key -
      value -
    • get

      public <T> T get(String key)
      Get a value from a key out of the JobContext
      Parameters:
      key -
      Returns:
    • getRequiredValue

      public <T> T getRequiredValue(String key)
      Get a required value from a key out of the Job Context
      Parameters:
      key -
      Returns:
    • getJobName

      public String getJobName()
      Convenience method to get the Job Name
      Returns:
    • getTriggerName

      public String getTriggerName()
      Convenience method to get the Trigger Name
      Returns:
    • getCronExpressionName

      public String getCronExpressionName()
      Convenience method to get the Cron Expression
      Returns: