Package com.almis.awe.scheduler.service
Class RemoteSchedulerService
java.lang.Object
com.almis.awe.config.ServiceConfig
com.almis.awe.scheduler.service.RemoteSchedulerService
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
- Author:
- pgarcia
-
Constructor Summary
ConstructorDescriptionRemoteSchedulerService
(SchedulerService schedulerService, RemoteScheduler remoteScheduler, com.fasterxml.jackson.databind.ObjectMapper mapper, boolean remote) Constructor -
Method Summary
Modifier and TypeMethodDescriptionactivateCalendar
(List<Integer> calendarIdList) Resume the selected calendar Requires QUARTZcheckCalendarExist
(List<Integer> calendarIdList) Check if the scheduler contains the selected calendar Requires QUARTZClear all scheduled tasks and stop the scheduler.computeNextFireTimes
(Integer times) Compute next fire times Requires QUARTZGet currently executing jobs from the scheduler instance Requires QUARTZdeactivateCalendar
(List<Integer> calendarIdList) Pause the selected calendar Requires QUARTZdeleteSchedulerCalendar
(List<Integer> calendarIdList) Delete selected calendars Requires QUARTZdeleteSchedulerTask
(List<Integer> ideTsk) Delete a task from scheduler Requires QUARTZexecuteTaskNow
(Integer taskId, String user) Execute the selected task now Requires QUARTZGet configured Requires QUARTZReturns information about the configured scheduler Requires QUARTZgetTaskExecutionList
(Integer taskId) Retrieve the task progress status Requires LOG FILESgetTaskList
(TaskListCriteria taskListCriteria) Retrieve the task list from service Requires QUARTZinsertSchedulerCalendar
(Integer calendarIde) Insert and schedule a new calendar Requires QUARTZinsertSchedulerTask
(Integer taskId) Insert and schedule a new task Requires QUARTZPause the selected task Requires QUARTZpurgeExecutionLogs
(Integer taskId, Integer executions) Purge execution logs Requires LOG FILESrestart()
Scheduler's emergency reboot method Requires QUARTZresumeTask
(Integer taskId) Resume the selected task Requires QUARTZstart()
Start the scheduler service Requires QUARTZstop()
Stop the scheduler service Requires QUARTZupdateSchedulerCalendar
(Integer calendarId) Update and schedule a new calendar Requires QUARTZupdateSchedulerTask
(Integer taskId) Update and reschedule a task Requires QUARTZMethods inherited from class com.almis.awe.config.ServiceConfig
containsBean, getApplicationContext, getBean, getBean, getElements, getLocale, getLocale, getProperty, getProperty, getRequest, getSession, setApplicationContext
-
Constructor Details
-
RemoteSchedulerService
public RemoteSchedulerService(SchedulerService schedulerService, RemoteScheduler remoteScheduler, com.fasterxml.jackson.databind.ObjectMapper mapper, boolean remote) Constructor
-
-
Method Details
-
getTaskList
Retrieve the task list from service Requires QUARTZ- Returns:
- ServiceData
- Throws:
AWException
- Error retrieving task list
-
computeNextFireTimes
Compute next fire times Requires QUARTZ- Parameters:
times
- # of fire times to compute- Returns:
- Service data
- Throws:
AWException
- Error computing next fire times
-
getTaskExecutionList
Retrieve the task progress status Requires LOG FILES- Returns:
- ServiceData
- Throws:
AWException
- Error retrieving task execution list
-
pauseTask
Pause the selected task Requires QUARTZ- Parameters:
taskId
- Task identifier- Returns:
- ServiceData
- Throws:
AWException
- Error pausing task
-
resumeTask
Resume the selected task Requires QUARTZ- Parameters:
taskId
- Task identifier- Returns:
- ServiceData
- Throws:
AWException
- Error resuming task
-
executeTaskNow
Execute the selected task now Requires QUARTZ- Parameters:
taskId
- Task identifier- Returns:
- ServiceData
- Throws:
AWException
- Error executing task
-
insertSchedulerTask
Insert and schedule a new task Requires QUARTZ- Parameters:
taskId
- Task identifier- Returns:
- ServiceData
- Throws:
AWException
- Error inserting task
-
updateSchedulerTask
Update and reschedule a task Requires QUARTZ- Parameters:
taskId
- Task identifier list- Returns:
- ServiceData
- Throws:
AWException
- Error updating task
-
deleteSchedulerTask
Delete a task from scheduler Requires QUARTZ- Parameters:
ideTsk
- Task identifier list- Returns:
- ServiceData
- Throws:
AWException
- Error deleting task
-
purgeExecutionLogs
Purge execution logs Requires LOG FILES- Parameters:
taskId
- Task identifierexecutions
- Number of executions to purge- Returns:
- Service data
- Throws:
AWException
- Error purging execution logs
-
currentlyExecutingJobs
Get currently executing jobs from the scheduler instance Requires QUARTZ- Returns:
- Service data
- Throws:
AWException
- Error retrieving currently executing jobs
-
getConfiguredJobs
Get configured Requires QUARTZ- Returns:
- Configured jobs
- Throws:
AWException
- Error retrieving configured jobs
-
insertSchedulerCalendar
Insert and schedule a new calendar Requires QUARTZ- Parameters:
calendarIde
- Calendar identifier- Returns:
- ServiceData
- Throws:
AWException
- Error inserting scheduler calendar
-
updateSchedulerCalendar
Update and schedule a new calendar Requires QUARTZ- Parameters:
calendarId
- Calendar identifier- Returns:
- ServiceData
- Throws:
AWException
- Error updating scheduler calendar
-
deleteSchedulerCalendar
Delete selected calendars Requires QUARTZ- Parameters:
calendarIdList
- Calendar identifier list- Returns:
- ServiceData
- Throws:
AWException
- Error deleting scheduler calendars
-
checkCalendarExist
Check if the scheduler contains the selected calendar Requires QUARTZ- Parameters:
calendarIdList
- Calendar identifier list- Returns:
- ServiceData
- Throws:
AWException
- Error checking calendars existence
-
activateCalendar
Resume the selected calendar Requires QUARTZ- Parameters:
calendarIdList
- Calendar identifier list- Returns:
- ServiceData
- Throws:
AWException
- Error activating calendars
-
deactivateCalendar
Pause the selected calendar Requires QUARTZ- Parameters:
calendarIdList
- Calendar identifier list- Returns:
- ServiceData
- Throws:
AWException
- Error deactivating calendars
-
start
Start the scheduler service Requires QUARTZ- Throws:
AWException
- Error starting scheduler
-
stop
Stop the scheduler service Requires QUARTZ- Throws:
AWException
- Error stopping scheduler
-
restart
Scheduler's emergency reboot method Requires QUARTZ- Throws:
AWException
- Error restarting scheduler
-
clearAndStop
Clear all scheduled tasks and stop the scheduler. Requires QUARTZ- Returns:
- Service data
- Throws:
AWException
-
getSchedulerMetadata
Returns information about the configured scheduler Requires QUARTZ- Returns:
- Scheduler metadata
- Throws:
AWException
- Error retrieving scheduler metadata
-