Class CamelJob
java.lang.Object
org.apache.camel.component.quartz.CamelJob
- All Implemented Interfaces:
org.quartz.InterruptableJob
,org.quartz.Job
- Direct Known Subclasses:
QuartzScheduledPollConsumerJob
,StatefulCamelJob
This is a Quartz Job that is scheduled by QuartzEndpoint's Consumer and will call it to produce a QuartzMessage
sending to a route.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(org.quartz.JobExecutionContext context) protected org.apache.camel.CamelContext
getCamelContext
(org.quartz.JobExecutionContext context) protected org.quartz.SchedulerContext
getSchedulerContext
(org.quartz.JobExecutionContext context) void
protected QuartzEndpoint
lookupQuartzEndpoint
(org.apache.camel.CamelContext camelContext, org.quartz.JobExecutionContext quartzContext) protected QuartzEndpoint
searchForEndpointMatch
(org.apache.camel.CamelContext camelContext, String endpointUri)
-
Constructor Details
-
CamelJob
public CamelJob()
-
-
Method Details
-
execute
public void execute(org.quartz.JobExecutionContext context) throws org.quartz.JobExecutionException - Specified by:
execute
in interfaceorg.quartz.Job
- Throws:
org.quartz.JobExecutionException
-
getCamelContext
protected org.apache.camel.CamelContext getCamelContext(org.quartz.JobExecutionContext context) throws org.quartz.JobExecutionException - Throws:
org.quartz.JobExecutionException
-
getSchedulerContext
protected org.quartz.SchedulerContext getSchedulerContext(org.quartz.JobExecutionContext context) throws org.quartz.JobExecutionException - Throws:
org.quartz.JobExecutionException
-
lookupQuartzEndpoint
protected QuartzEndpoint lookupQuartzEndpoint(org.apache.camel.CamelContext camelContext, org.quartz.JobExecutionContext quartzContext) throws org.quartz.JobExecutionException - Throws:
org.quartz.JobExecutionException
-
searchForEndpointMatch
protected QuartzEndpoint searchForEndpointMatch(org.apache.camel.CamelContext camelContext, String endpointUri) -
interrupt
public void interrupt() throws org.quartz.UnableToInterruptJobException- Specified by:
interrupt
in interfaceorg.quartz.InterruptableJob
- Throws:
org.quartz.UnableToInterruptJobException
-