public class ScheduleManager extends Object
| Constructor and Description |
|---|
ScheduleManager() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addJob(IJobWrapper job,
org.quartz.Trigger trigger)
Method to add and start an job
|
static void |
configureSchedulerName(String schedulerName) |
static Properties |
getDefaultProperties()
Method to get the default
Properties to start the scheduler with |
static org.quartz.JobDetail |
getJob(org.quartz.JobKey key)
Method to get an scheduled job by his key
|
static org.quartz.Scheduler |
getScheduler() |
static org.quartz.Trigger |
getTrigger(org.quartz.TriggerKey key)
Method to get an trigger by his key
|
static void |
initialize()
Method to initialize the schedule-manager
|
static void |
registerStartupListener(IBaseNotificationListener listener) |
static void |
removeJob(org.quartz.JobKey key)
Method to remove an job by his key
|
static void |
removeStartupListener(IBaseNotificationListener listener) |
static void |
setCustomProperties(Properties properties)
Method to override the default properties
|
static void |
shutdown()
Method to shutdown the scheduler
|
public static void initialize()
public static void registerStartupListener(IBaseNotificationListener listener)
public static void removeStartupListener(IBaseNotificationListener listener)
public static org.quartz.Scheduler getScheduler()
public static void configureSchedulerName(String schedulerName)
schedulerName - String the name of the scheduler to usepublic static void addJob(IJobWrapper job, org.quartz.Trigger trigger)
job - IJobWrapper with data to start the job withtrigger - Trigger to schedule the jobpublic static org.quartz.JobDetail getJob(org.quartz.JobKey key)
key - JobKey to search the job withJobDetail the found job or nullpublic static void removeJob(org.quartz.JobKey key)
key - JobKey to find the job to removepublic static org.quartz.Trigger getTrigger(org.quartz.TriggerKey key)
key - TriggerKey to search the trigger forTrigger the found trigger or nullpublic static void shutdown()
public static Properties getDefaultProperties()
Properties to start the scheduler withProperties to start the scheduler withpublic static void setCustomProperties(Properties properties)
properties - Properties to start the scheduler withCopyright © 2020 XIMA MEDIA GmbH. All rights reserved.