Class QuartzHelper
- java.lang.Object
-
- org.apache.camel.component.quartz.QuartzHelper
-
public final class QuartzHelper extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.Logger
LOG
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getQuartzContextName(org.apache.camel.CamelContext camelContext)
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.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.
-
-
-
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 camelContextjobDetail
- The job for which the jobData map shall be updatedendpointUri
- URI of the endpoint name, if any. May benull
-
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 camelContextjobDetail
- The job for which the jobData map shall be updatedendpointUri
- URI of the endpoint name, if any. May benull
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
-
-