Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.quartz.impl
Class QuartzServer

    java.lang.Object
      org.quartz.impl.QuartzServer

All Implemented Interfaces:
  SchedulerListener

public class QuartzServer
extends Object
implements SchedulerListener

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``, ``TriggerListener`` and ``SchedulerListener`` classes.

Please read the Quartz FAQ entries about RMI before asking questions in the forums or mail-lists.

Author:
  James House

Method Summary
`void` | `jobScheduled(Trigger trigger)` Called by the ``Scheduler`` when a ``JobDetail`` is scheduled.
`void` | `jobsPaused(String jobName, String jobGroup)` Called by the ``Scheduler`` when a ``JobDetail`` or group of ``JobDetail`s` has been paused.
`void` | `jobsResumed(String jobName, String jobGroup)` Called by the ``Scheduler`` when a ``JobDetail`` or group of ``JobDetail`s` has been un-paused.
`void` | `jobUnscheduled(String triggerName, String triggerGroup)` Called by the ``Scheduler`` when a ``JobDetail`` is unscheduled.
`static void` | `main(String[] args)`
`void` | `schedulerError(String msg, SchedulerException cause)` Called by the ``Scheduler`` 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 ``Scheduler`` to inform the listener that it has shutdown.
`void` | `serve(SchedulerFactory schedFact, boolean console)`
`void` | `triggerFinalized(Trigger trigger)` Called by the ``Scheduler`` when a ``Trigger`` has reached the condition in which it will never fire again.
`void` | `triggersPaused(String triggerName, String triggerGroup)` Called by the ``Scheduler`` when a ``Trigger`` or group of ``Trigger`s` has been paused.
`void` | `triggersResumed(String triggerName, String triggerGroup)` Called by the ``Scheduler`` when a ``Trigger`` or group of ``Trigger`s` has been un-paused.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### serve

    public void serve(SchedulerFactory schedFact,
                      boolean console)
               throws Exception

  Throws:
    `Exception`

### jobScheduled

    public void jobScheduled(Trigger trigger)

  Called by the ``Scheduler`` when a ``JobDetail`` is scheduled.

  Specified by:
    `jobScheduled` in interface `SchedulerListener`

### jobUnscheduled

    public void jobUnscheduled(String triggerName,
                               String triggerGroup)

  Called by the ``Scheduler`` when a ``JobDetail`` is unscheduled.

  Specified by:
    `jobUnscheduled` in interface `SchedulerListener`

### triggerFinalized

    public void triggerFinalized(Trigger trigger)

  Called by the ``Scheduler`` when a ``Trigger`` has reached the condition in which it will never fire again.

  Specified by:
    `triggerFinalized` in interface `SchedulerListener`

### triggersPaused

    public void triggersPaused(String triggerName,
                               String triggerGroup)

  Called by the ``Scheduler`` when a ``Trigger`` or group of ``Trigger`s` has been paused.

  If a group was paused, then the `triggerName` parameter will be null.

  Specified by:
    `triggersPaused` in interface `SchedulerListener`

### triggersResumed

    public void triggersResumed(String triggerName,
                                String triggerGroup)

  Called by the ``Scheduler`` when a ``Trigger`` or group of ``Trigger`s` has been un-paused.

  If a group was resumed, then the `triggerName` parameter will be null.

  Specified by:
    `triggersResumed` in interface `SchedulerListener`

### jobsPaused

    public void jobsPaused(String jobName,
                           String jobGroup)

  Called by the ``Scheduler`` when a ``JobDetail`` or group of ``JobDetail`s` has been paused.

  If a group was paused, then the `jobName` parameter will be null.

  Specified by:
    `jobsPaused` in interface `SchedulerListener`

### jobsResumed

    public void jobsResumed(String jobName,
                            String jobGroup)

  Called by the ``Scheduler`` when a ``JobDetail`` or group of ``JobDetail`s` has been un-paused.

  If a group was paused, then the `jobName` parameter will be null.

  Specified by:
    `jobsResumed` in interface `SchedulerListener`

### schedulerError

    public void schedulerError(String msg,
                               SchedulerException cause)

  Called by the ``Scheduler`` 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.

  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:
    `schedulerError` in interface `SchedulerListener`

### schedulerShutdown

    public void schedulerShutdown()

  Called by the ``Scheduler`` to inform the listener that it has shutdown.

  Specified by:
    `schedulerShutdown` in interface `SchedulerListener`

### main

    public static void main(String[] args)
                     throws Exception

  Throws:
    `Exception`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Quartz Enterprise Job Scheduler Project Page
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD