com.solidstategroup.job
Class SchedulerWrapper
java.lang.Object
com.solidstategroup.job.SchedulerWrapper
public class SchedulerWrapper
- extends java.lang.Object
SchedulerWrapper - makes sure we only ever have one scheduler object
|
Method Summary |
static boolean |
addCronJob(java.lang.String name,
java.lang.String cron,
java.lang.Class clazz)
|
static java.lang.String[] |
getJobNames()
|
static org.quartz.Scheduler |
getScheduler()
|
static boolean |
running()
|
static boolean |
start()
|
static boolean |
stop()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SchedulerWrapper
public SchedulerWrapper()
getScheduler
public static org.quartz.Scheduler getScheduler()
running
public static boolean running()
start
public static boolean start()
stop
public static boolean stop()
addCronJob
public static boolean addCronJob(java.lang.String name,
java.lang.String cron,
java.lang.Class clazz)
getJobNames
public static java.lang.String[] getJobNames()