Class QuartzHelper


  • public final class QuartzHelper
    extends Object
    • Field Detail

      • LOG

        public static final org.slf4j.Logger LOG
    • Method Detail

      • getQuartzContextName

        public static String getQuartzContextName​(org.apache.camel.CamelContext camelContext)
      • updateJobDataMap

        public static void updateJobDataMap​(org.apache.camel.CamelContext camelContext,
                                            org.quartz.JobDetail jobDetail,
                                            String endpointUri)
        Adds the current CamelContext name and endpoint URI to the Job's jobData map.
        Parameters:
        camelContext - The currently active camelContext
        jobDetail - The job for which the jobData map shall be updated
        endpointUri - URI of the endpoint name, if any. May be null
      • updateJobDataMap

        public static void updateJobDataMap​(org.apache.camel.CamelContext camelContext,
                                            org.quartz.JobDetail jobDetail,
                                            String endpointUri,
                                            boolean usingFixedCamelContextName)
        Adds the current CamelContext name and endpoint URI to the Job's jobData map.
        Parameters:
        camelContext - The currently active camelContext
        jobDetail - The job for which the jobData map shall be updated
        endpointUri - URI of the endpoint name, if any. May be null
        usingFixedCamelContextName - If it is true, jobDataMap uses the CamelContext name; if it is false, jobDataMap uses the CamelContext management name which could be changed during the deploy time