Class QuartzServer
- java.lang.Object
-
- org.quartz.listeners.SchedulerListenerSupport
-
- org.quartz.impl.QuartzServer
-
- All Implemented Interfaces:
SchedulerListener
public class QuartzServer extends SchedulerListenerSupport
Instantiates an instance of Quartz Scheduler as a stand-alone program, if the scheduler is configured for RMI it will be made available.
The main() method of this class currently accepts 0 or 1 arguments, if there is an argument, and its value is
"console", then the program will print a short message on the console (std-out) and wait for the user to type "exit" - at which time the scheduler will be shutdown.Future versions of this server should allow additional configuration for responding to scheduler events by allowing the user to specify
,JobListenerandTriggerListenerclasses.SchedulerListenerPlease read the Quartz FAQ entries about RMI before asking questions in the forums or mail-lists.
- Author:
- James House
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)voidschedulerError(java.lang.String msg, SchedulerException cause)Called by thewhen a serious error has occurred within the scheduler - such as repeated failures in theSchedulerJobStore, or the inability to instantiate aJobinstance when itsTriggerhas fired.voidschedulerShutdown()Called by theto inform the listener that it has shutdown.Schedulervoidserve(SchedulerFactory schedFact, boolean console)-
Methods inherited from class org.quartz.listeners.SchedulerListenerSupport
getLog, jobAdded, jobDeleted, jobPaused, jobResumed, jobScheduled, jobsPaused, jobsResumed, jobUnscheduled, schedulerInStandbyMode, schedulerShuttingdown, schedulerStarted, schedulerStarting, schedulingDataCleared, triggerFinalized, triggerPaused, triggerResumed, triggersPaused, triggersResumed
-
-
-
-
Method Detail
-
serve
public void serve(SchedulerFactory schedFact, boolean console) throws java.lang.Exception
- Throws:
java.lang.Exception
-
schedulerError
public void schedulerError(java.lang.String msg, SchedulerException cause)Called by the
when a serious error has occurred within the scheduler - such as repeated failures in theSchedulerJobStore, or the inability to instantiate aJobinstance when itsTriggerhas fired.The
getErrorCode()method of the given SchedulerException can be used to determine more specific information about the type of error that was encountered.- Specified by:
schedulerErrorin interfaceSchedulerListener- Overrides:
schedulerErrorin classSchedulerListenerSupport
-
schedulerShutdown
public void schedulerShutdown()
Called by the
to inform the listener that it has shutdown.Scheduler- Specified by:
schedulerShutdownin interfaceSchedulerListener- Overrides:
schedulerShutdownin classSchedulerListenerSupport
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception- Throws:
java.lang.Exception
-
-