public class CronListener extends Object implements javax.servlet.ServletContextListener
| Modifier and Type | Field and Description |
|---|---|
static String |
AUTHKEY |
static String |
BASEURL |
static String |
IMAGEPATH |
static String |
QUARTZ_AUTHKEY_DATA_MAP_ENTITY_KEY |
static String |
QUARTZ_BASEURL_DATA_MAP_ENTITY_KEY |
static String |
QUARTZ_GROUP_NAME |
static String |
QUARTZ_IMAGEPATH_DATA_MAP_ENTITY_KEY |
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(Project job) |
static void |
rescheduleJob(Project jobEntity) |
static void |
runNow(Project job) |
static void |
scheduleProject(Project jobEntity) |
static void |
unscheduleJob(Project 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 static final String QUARTZ_BASEURL_DATA_MAP_ENTITY_KEY
public static final String QUARTZ_AUTHKEY_DATA_MAP_ENTITY_KEY
public static final String QUARTZ_IMAGEPATH_DATA_MAP_ENTITY_KEY
public static String IMAGEPATH
public static String BASEURL
public static String AUTHKEY
public void contextInitialized(javax.servlet.ServletContextEvent sce)
contextInitialized in interface javax.servlet.ServletContextListenerpublic static void runNow(Project job) throws org.quartz.SchedulerException
org.quartz.SchedulerExceptionpublic static void scheduleProject(Project jobEntity) throws org.quartz.SchedulerException
org.quartz.SchedulerExceptionpublic static void rescheduleJob(Project jobEntity) throws org.quartz.SchedulerException
org.quartz.SchedulerExceptionpublic static void unscheduleJob(Project job)
public void contextDestroyed(javax.servlet.ServletContextEvent sce)
contextDestroyed in interface javax.servlet.ServletContextListenerCopyright © 2018. All rights reserved.