Package com.almis.awe.scheduler.dao
Class SchedulerDAO
java.lang.Object
com.almis.awe.config.ServiceConfig
com.almis.awe.scheduler.dao.SchedulerDAO
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
-
Constructor Summary
ConstructorDescriptionSchedulerDAO
(org.quartz.Scheduler scheduler, boolean loadSchedulerTasks, CalendarDAO calendarDAO, TaskService taskService, SchedulerTriggerListener triggerListener, SchedulerJobListener jobListener) Constructor -
Method Summary
Modifier and TypeMethodDescriptionClear all scheduled tasks and stop the scheduler.Get configuredGet currently executing job instances from the scheduler isntanceReturns information about the configured schedulergetTriggerState
(String group, String key) Get the trigger state for the given group and trigger keyrestart()
Scheduler's emergency reboot methodstart()
Start the scheduler serviceStart the scheduler servicestop()
Stop the scheduler serviceMethods inherited from class com.almis.awe.config.ServiceConfig
containsBean, getApplicationContext, getBean, getBean, getElements, getLocale, getLocale, getProperty, getProperty, getRequest, getSession, setApplicationContext
-
Constructor Details
-
SchedulerDAO
public SchedulerDAO(org.quartz.Scheduler scheduler, boolean loadSchedulerTasks, CalendarDAO calendarDAO, TaskService taskService, SchedulerTriggerListener triggerListener, SchedulerJobListener jobListener) Constructor- Parameters:
scheduler
- SchedulerloadSchedulerTasks
- Scheduler load task flagcalendarDAO
- Calendar DAOtaskService
- Task servicetriggerListener
- Trigger listenerjobListener
- Job listener
-
-
Method Details
-
start
Start the scheduler service- Throws:
AWException
-
startNoQuartz
Start the scheduler service- Throws:
AWException
-
stop
Stop the scheduler service- Throws:
AWException
-
restart
Scheduler's emergency reboot method- Throws:
AWException
-
clearAndStop
Clear all scheduled tasks and stop the scheduler.- Returns:
- Throws:
AWException
-
getCurrentlyExecutingJobs
Get currently executing job instances from the scheduler isntance- Returns:
- Throws:
AWException
-
getConfiguredJobs
Get configured- Returns:
- Throws:
AWException
-
getSchedulerMetadata
Returns information about the configured scheduler- Returns:
- Throws:
AWException
-
getTriggerState
Get the trigger state for the given group and trigger key- Parameters:
group
-key
-- Returns:
- Throws:
AWException
-