com.armatiek.infofuze.job
Class JobScheduler

java.lang.Object
  extended by com.armatiek.infofuze.job.JobScheduler

public class JobScheduler
extends java.lang.Object

Singleton wrapper for a Quartz Scheduler instance

Author:
Maarten Kroon

Method Summary
static JobScheduler getInstance()
          Returns the JobScheduler singleton instance
 org.quartz.Scheduler getScheduler()
          Returns the Quartz Scheduler instance.
 void startScheduler()
          Starts the Quartz Scheduler.
 void stopScheduler()
          Stops the Quartz Scheduler but only when not in development mode.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static JobScheduler getInstance()
                                throws java.lang.Exception
Returns the JobScheduler singleton instance

Throws:
java.lang.Exception

getScheduler

public org.quartz.Scheduler getScheduler()
Returns the Quartz Scheduler instance.


startScheduler

public void startScheduler()
                    throws org.quartz.SchedulerException
Starts the Quartz Scheduler.

Throws:
org.quartz.SchedulerException

stopScheduler

public void stopScheduler()
                   throws org.quartz.SchedulerException
Stops the Quartz Scheduler but only when not in development mode.

Throws:
org.quartz.SchedulerException