public class CronListener extends Object implements javax.servlet.ServletContextListener
| Modifier and Type | Field and Description |
|---|---|
static String |
QUARTZ_GROUP_NAME |
static String |
QUARTZ_JOB_DATA_MAP_ENTITY_KEY |
static String |
QUARTZ_JOB_NAME |
static String |
QUARTZ_TRIGGER_NAME |
| Constructor and Description |
|---|
CronListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent sce) |
void |
contextInitialized(javax.servlet.ServletContextEvent sce) |
static Date |
getNextFireTime(CronJob job) |
static void |
rescheduleJob(CronJob jobEntity) |
static void |
runNow(CronJob job) |
static void |
scheduleJob(CronJob jobEntity) |
static void |
unscheduleJob(CronJob job) |
public static final String QUARTZ_GROUP_NAME
public static final String QUARTZ_JOB_NAME
public static final String QUARTZ_TRIGGER_NAME
public static final String QUARTZ_JOB_DATA_MAP_ENTITY_KEY
public void contextInitialized(javax.servlet.ServletContextEvent sce)
contextInitialized in interface javax.servlet.ServletContextListenerpublic static void runNow(CronJob job) throws org.quartz.SchedulerException
org.quartz.SchedulerExceptionpublic static void scheduleJob(CronJob jobEntity) throws org.quartz.SchedulerException
org.quartz.SchedulerExceptionpublic static void rescheduleJob(CronJob jobEntity) throws org.quartz.SchedulerException
org.quartz.SchedulerExceptionpublic static void unscheduleJob(CronJob job)
public void contextDestroyed(javax.servlet.ServletContextEvent sce)
contextDestroyed in interface javax.servlet.ServletContextListenerCopyright © 2017. All rights reserved.