public class QuartzServer extends Object implements ISchedulerListener
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 arguemtns, 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
,
IJobListener and
ITriggerListener classes.
ISchedulerListener
Please read the Quartz FAQ entries about RMI before asking questions in the forums or mail-lists.
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args) |
void |
schedulerError(String msg,
SchedulerException cause)
Called by the
when a serious error has
occured within the scheduler - such as repeated failures in the
JobStore, or the inability to instantiate a Job
instance when its Trigger has fired. |
void |
schedulerShutdown()
Called by the
to inform the listener that
it has shutdown. |
void |
serve(ISchedulerFactory schedFact,
boolean console) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitjobAdded, jobDeleted, jobPaused, jobResumed, jobScheduled, jobsPaused, jobsResumed, jobUnscheduled, schedulerInStandbyMode, schedulerShuttingdown, schedulerStarted, schedulerStarting, schedulingDataCleared, triggerFinalized, triggerPaused, triggerResumed, triggersPaused, triggersResumedpublic void serve(ISchedulerFactory schedFact, boolean console) throws Exception
Exceptionpublic void schedulerError(String msg, SchedulerException cause)
Called by the when a serious error has
occured within the scheduler - such as repeated failures in the
ISchedulerJobStore, or the inability to instantiate a Job
instance when its Trigger has fired.
The getErrorCode() method of the given SchedulerException can
be used to determine more specific information about the type of error that
was encountered.
schedulerError in interface ISchedulerListenerpublic void schedulerShutdown()
Called by the to inform the listener that
it has shutdown.
IScheduler
schedulerShutdown in interface ISchedulerListenerCopyright © 2016–2021 Philip Helger. All rights reserved.