|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.quartz.plugins.management.ShutdownHookPlugin
public class ShutdownHookPlugin
This plugin catches the event of the JVM terminating (such as upon a CRTL-C) and tells the scheuler to shutdown.
Scheduler.shutdown(boolean)| Constructor Summary | |
|---|---|
ShutdownHookPlugin()
|
|
| Method Summary | |
|---|---|
protected org.slf4j.Logger |
getLog()
|
void |
initialize(String name,
Scheduler scheduler)
Called during creation of the Scheduler in order to give
the SchedulerPlugin a chance to initialize. |
boolean |
isCleanShutdown()
Determine whether or not the plug-in is configured to cause a clean shutdown of the scheduler. |
void |
setCleanShutdown(boolean b)
Set whether or not the plug-in is configured to cause a clean shutdown of the scheduler. |
void |
shutdown()
Called in order to inform the SchedulerPlugin that it
should free up all of it's resources because the scheduler is shutting
down. |
void |
start()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ShutdownHookPlugin()
| Method Detail |
|---|
public boolean isCleanShutdown()
The default value is true.
Scheduler.shutdown(boolean)public void setCleanShutdown(boolean b)
The default value is true.
Scheduler.shutdown(boolean)protected org.slf4j.Logger getLog()
public void initialize(String name,
Scheduler scheduler)
throws SchedulerException
Called during creation of the Scheduler in order to give
the SchedulerPlugin a chance to initialize.
initialize in interface org.quartz.spi.SchedulerPluginSchedulerConfigException - if there is an error initializing.
SchedulerExceptionpublic void start()
start in interface org.quartz.spi.SchedulerPluginpublic void shutdown()
Called in order to inform the SchedulerPlugin that it
should free up all of it's resources because the scheduler is shutting
down.
shutdown in interface org.quartz.spi.SchedulerPlugin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||