|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.quartz.impl.QuartzServer
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
,
JobListener and
TriggerListener classes.SchedulerListener
Please read the Quartz FAQ entries about RMI before asking questions in the forums or mail-lists.
| Method Summary | |
void |
jobScheduled(Trigger trigger)
Called by the when a
is scheduled. |
void |
jobsPaused(java.lang.String jobName,
java.lang.String jobGroup)
Called by the when a
or group of
has been paused. |
void |
jobsResumed(java.lang.String jobName,
java.lang.String jobGroup)
Called by the when a
or group of
has been un-paused. |
void |
jobUnscheduled(java.lang.String triggerName,
java.lang.String triggerGroup)
Called by the when a
is unscheduled. |
static void |
main(java.lang.String[] args)
|
void |
schedulerError(java.lang.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(SchedulerFactory schedFact,
boolean console)
|
void |
triggerFinalized(Trigger trigger)
Called by the when a
has reached the condition in which it will
never fire again. |
void |
triggersPaused(java.lang.String triggerName,
java.lang.String triggerGroup)
Called by the when a
or group of
has been paused. |
void |
triggersResumed(java.lang.String triggerName,
java.lang.String triggerGroup)
Called by the when a
or group of
has been un-paused. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public void serve(SchedulerFactory schedFact,
boolean console)
throws java.lang.Exception
java.lang.Exceptionpublic void jobScheduled(Trigger trigger)
Called by the when a
Scheduler is scheduled.JobDetail
jobScheduled in interface SchedulerListener
public void jobUnscheduled(java.lang.String triggerName,
java.lang.String triggerGroup)
Called by the when a
Scheduler is unscheduled.JobDetail
jobUnscheduled in interface SchedulerListenerpublic void triggerFinalized(Trigger trigger)
Called by the when a
Scheduler has reached the condition in which it will
never fire again.Trigger
triggerFinalized in interface SchedulerListener
public void triggersPaused(java.lang.String triggerName,
java.lang.String triggerGroup)
Called by the when a
Scheduler or group of Trigger
has been paused.Triggers
If a group was paused, then the triggerName parameter
will be null.
triggersPaused in interface SchedulerListener
public void triggersResumed(java.lang.String triggerName,
java.lang.String triggerGroup)
Called by the when a
Scheduler or group of Trigger
has been un-paused.Triggers
If a group was resumed, then the triggerName parameter
will be null.
triggersResumed in interface SchedulerListener
public void jobsPaused(java.lang.String jobName,
java.lang.String jobGroup)
Called by the when a
Scheduler or group of JobDetail
has been paused.JobDetails
If a group was paused, then the jobName parameter
will be null.
jobsPaused in interface SchedulerListener
public void jobsResumed(java.lang.String jobName,
java.lang.String jobGroup)
Called by the when a
Scheduler or group of JobDetail
has been un-paused.JobDetails
If a group was paused, then the jobName parameter
will be null.
jobsResumed in interface SchedulerListener
public void schedulerError(java.lang.String msg,
SchedulerException cause)
Called by the when a serious error has
occured within the scheduler - such as repeated failures in the
SchedulerJobStore, 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 SchedulerListenerpublic void schedulerShutdown()
Called by the to inform the listener
that it has shutdown.Scheduler
schedulerShutdown in interface SchedulerListener
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||