@Component(value="quartz")
public class QuartzComponent
extends org.apache.camel.support.DefaultComponent
implements org.apache.camel.ExtendedStartupListener
| Constructor and Description |
|---|
QuartzComponent() |
QuartzComponent(org.apache.camel.CamelContext camelContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
addScheduleInitTask(SchedulerInitTask task)
Adds a task to be executed as part of initializing and starting the scheduler; or executes the task if the
scheduler has already been started.
|
protected org.apache.camel.Endpoint |
createEndpoint(String uri,
String remaining,
Map<String,Object> parameters) |
protected String |
createInstanceName(Properties prop) |
protected void |
doStart() |
protected void |
doStartScheduler() |
protected void |
doStop() |
Map |
getProperties() |
String |
getPropertiesFile() |
String |
getPropertiesRef() |
org.quartz.Scheduler |
getScheduler() |
org.quartz.SchedulerFactory |
getSchedulerFactory() |
int |
getStartDelayedSeconds() |
boolean |
isAutoStartScheduler() |
boolean |
isClustered()
Is the quartz scheduler clustered?
|
boolean |
isEnableJmx() |
boolean |
isInterruptJobsOnShutdown() |
boolean |
isPrefixInstanceName() |
boolean |
isPrefixJobNameWithEndpointId() |
void |
onCamelContextFullyStarted(org.apache.camel.CamelContext context,
boolean alreadyStarted) |
void |
onCamelContextStarted(org.apache.camel.CamelContext context,
boolean alreadyStarted) |
void |
setAutoStartScheduler(boolean autoStartScheduler)
Whether or not the scheduler should be auto started.
|
void |
setEnableJmx(boolean enableJmx)
Whether to enable Quartz JMX which allows to manage the Quartz scheduler from JMX.
|
void |
setInterruptJobsOnShutdown(boolean interruptJobsOnShutdown)
Whether to interrupt jobs on shutdown which forces the scheduler to shutdown quicker and attempt to interrupt any
running jobs.
|
void |
setPrefixInstanceName(boolean prefixInstanceName)
Whether to prefix the Quartz Scheduler instance name with the CamelContext name.
|
void |
setPrefixJobNameWithEndpointId(boolean prefixJobNameWithEndpointId)
Whether to prefix the quartz job with the endpoint id.
|
void |
setProperties(Map properties)
Properties to configure the Quartz scheduler.
|
void |
setPropertiesFile(String propertiesFile)
File name of the properties to load from the classpath
|
void |
setPropertiesRef(String propertiesRef)
References to an existing
Properties or Map to lookup in the registry to use for configuring
quartz. |
void |
setScheduler(org.quartz.Scheduler scheduler)
To use the custom configured Quartz scheduler, instead of creating a new Scheduler.
|
void |
setSchedulerFactory(org.quartz.SchedulerFactory schedulerFactory)
To use the custom SchedulerFactory which is used to create the Scheduler.
|
void |
setStartDelayedSeconds(int startDelayedSeconds)
Seconds to wait before starting the quartz scheduler.
|
afterConfiguration, createEndpoint, createEndpoint, doBuild, doInit, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, getComponentPropertyConfigurer, getEndpointPropertyConfigurer, getExtension, getSupportedExtensions, ifStartsWithReturnRemainder, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, registerExtension, registerExtension, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, resolveRawParameterValues, setAutowiredEnabled, setBridgeErrorHandler, setCamelContext, setLazyStartProducer, setProperties, setProperties, setProperties, useIntrospectionOnEndpoint, useRawUri, validateParameters, validateURIbuild, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic QuartzComponent()
public QuartzComponent(org.apache.camel.CamelContext camelContext)
public boolean isAutoStartScheduler()
public void setAutoStartScheduler(boolean autoStartScheduler)
public int getStartDelayedSeconds()
public void setStartDelayedSeconds(int startDelayedSeconds)
public boolean isPrefixJobNameWithEndpointId()
public void setPrefixJobNameWithEndpointId(boolean prefixJobNameWithEndpointId)
public boolean isEnableJmx()
public void setEnableJmx(boolean enableJmx)
public String getPropertiesRef()
public void setPropertiesRef(String propertiesRef)
Properties or Map to lookup in the registry to use for configuring
quartz.public Map getProperties()
public void setProperties(Map properties)
public String getPropertiesFile()
public void setPropertiesFile(String propertiesFile)
public boolean isPrefixInstanceName()
public void setPrefixInstanceName(boolean prefixInstanceName)
public boolean isInterruptJobsOnShutdown()
public void setInterruptJobsOnShutdown(boolean interruptJobsOnShutdown)
public org.quartz.SchedulerFactory getSchedulerFactory()
protected String createInstanceName(Properties prop)
public boolean isClustered()
throws org.quartz.SchedulerException
org.quartz.SchedulerExceptionpublic void setSchedulerFactory(org.quartz.SchedulerFactory schedulerFactory)
public org.quartz.Scheduler getScheduler()
public void addScheduleInitTask(SchedulerInitTask task)
public void setScheduler(org.quartz.Scheduler scheduler)
protected org.apache.camel.Endpoint createEndpoint(String uri, String remaining, Map<String,Object> parameters) throws Exception
createEndpoint in class org.apache.camel.support.DefaultComponentExceptionprotected void doStart()
throws Exception
doStart in class org.apache.camel.support.DefaultComponentExceptionprotected void doStop()
throws Exception
doStop in class org.apache.camel.support.DefaultComponentExceptionpublic void onCamelContextStarted(org.apache.camel.CamelContext context,
boolean alreadyStarted)
throws Exception
onCamelContextStarted in interface org.apache.camel.StartupListenerExceptionpublic void onCamelContextFullyStarted(org.apache.camel.CamelContext context,
boolean alreadyStarted)
throws Exception
onCamelContextFullyStarted in interface org.apache.camel.StartupListenerExceptionApache Camel