|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.impl.ServiceSupport
org.apache.camel.impl.DefaultComponent
org.apache.camel.component.quartz.QuartzComponent
public class QuartzComponent
| Constructor Summary | |
|---|---|
QuartzComponent()
|
|
QuartzComponent(CamelContext context)
|
|
| Method Summary | |
|---|---|
void |
addJob(org.quartz.JobDetail job,
org.quartz.Trigger trigger)
|
protected org.quartz.CronTrigger |
createCronTrigger(String path)
|
protected QuartzEndpoint |
createEndpoint(String uri,
String remaining,
Map<String,Object> parameters)
A factory method allowing derived components to create a new endpoint from the given URI, remaining path and optional parameters |
protected org.quartz.Scheduler |
createScheduler()
|
protected org.quartz.SchedulerFactory |
createSchedulerFactory()
|
void |
deleteJob(String name,
String group)
|
protected void |
doStart()
|
protected void |
doStop()
|
org.quartz.SchedulerFactory |
getFactory()
|
Properties |
getProperties()
|
String |
getPropertiesFile()
|
org.quartz.Scheduler |
getScheduler()
|
int |
getStartDelayedSeconds()
|
boolean |
isAutoStartScheduler()
|
boolean |
isClustered()
Is the quartz scheduler clustered? |
protected Properties |
loadProperties()
|
void |
onCamelContextStarted(CamelContext camelContext,
boolean alreadyStarted)
Callback invoked when the CamelContext has just been started. |
void |
pauseJob(org.quartz.Trigger trigger)
|
void |
setAutoStartScheduler(boolean autoStartScheduler)
|
void |
setFactory(org.quartz.SchedulerFactory factory)
|
void |
setProperties(Properties properties)
|
void |
setPropertiesFile(String propertiesFile)
|
void |
setScheduler(org.quartz.Scheduler scheduler)
|
void |
setStartDelayedSeconds(int startDelayedSeconds)
|
void |
shutdownScheduler()
To force shutdown the quartz scheduler |
void |
startScheduler()
To force starting the quartz scheduler |
| Methods inherited from class org.apache.camel.impl.ServiceSupport |
|---|
addChildService, doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, start, stop, suspend |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QuartzComponent()
public QuartzComponent(CamelContext context)
| Method Detail |
|---|
protected QuartzEndpoint createEndpoint(String uri,
String remaining,
Map<String,Object> parameters)
throws Exception
DefaultComponent
createEndpoint in class DefaultComponenturi - the full URI of the endpointremaining - the remaining part of the URI without the query
parameters or component prefixparameters - the optional parameters passed in
Exception
protected org.quartz.CronTrigger createCronTrigger(String path)
throws ParseException
ParseException
public void onCamelContextStarted(CamelContext camelContext,
boolean alreadyStarted)
throws Exception
StartupListenerCamelContext has just been started.
onCamelContextStarted in interface StartupListenercamelContext - the Camel contextalreadyStarted - whether or not the CamelContext already has been started. For example the context
could already have been started, and then a service is added/started later which still
triggers this callback to be invoked.
Exception - can be thrown in case of errors to fail the startup process and have the application
fail on startup.
protected void doStart()
throws Exception
doStart in class DefaultComponentException
protected void doStop()
throws Exception
doStop in class DefaultComponentException
public void addJob(org.quartz.JobDetail job,
org.quartz.Trigger trigger)
throws org.quartz.SchedulerException
org.quartz.SchedulerException
public void pauseJob(org.quartz.Trigger trigger)
throws org.quartz.SchedulerException
org.quartz.SchedulerException
public void deleteJob(String name,
String group)
throws org.quartz.SchedulerException
org.quartz.SchedulerException
public void shutdownScheduler()
throws org.quartz.SchedulerException
org.quartz.SchedulerException - can be thrown if error shutting down
public boolean isClustered()
throws org.quartz.SchedulerException
org.quartz.SchedulerException
public void startScheduler()
throws org.quartz.SchedulerException
org.quartz.SchedulerException - can be thrown if error starting
public org.quartz.SchedulerFactory getFactory()
throws org.quartz.SchedulerException
org.quartz.SchedulerExceptionpublic void setFactory(org.quartz.SchedulerFactory factory)
public org.quartz.Scheduler getScheduler()
throws org.quartz.SchedulerException
org.quartz.SchedulerExceptionpublic void setScheduler(org.quartz.Scheduler scheduler)
public Properties getProperties()
public void setProperties(Properties properties)
public String getPropertiesFile()
public void setPropertiesFile(String propertiesFile)
public int getStartDelayedSeconds()
public void setStartDelayedSeconds(int startDelayedSeconds)
public boolean isAutoStartScheduler()
public void setAutoStartScheduler(boolean autoStartScheduler)
protected Properties loadProperties()
throws org.quartz.SchedulerException
org.quartz.SchedulerException
protected org.quartz.SchedulerFactory createSchedulerFactory()
throws org.quartz.SchedulerException
org.quartz.SchedulerException
protected org.quartz.Scheduler createScheduler()
throws org.quartz.SchedulerException
org.quartz.SchedulerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||