Package com.almis.awe.scheduler.service
Class ExecutionService
java.lang.Object
com.almis.awe.scheduler.service.ExecutionService
Task timeout service
- Author:
- dfuentes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
interruptExecutionJobs
(TaskExecution execution) Interrupt timeout timervoid
startProgressJob
(TaskExecution execution, Integer averageTime) Start progress jobvoid
startReportJob
(Task task, TaskExecution execution) Start report jobvoid
startTimeoutJob
(TaskExecution execution, long timeout, Future<ServiceData> process) Start timeout job
-
Constructor Details
-
ExecutionService
public ExecutionService(org.quartz.Scheduler scheduler) Autowired constructor- Parameters:
scheduler
- Scheduler service
-
-
Method Details
-
startTimeoutJob
Start timeout job- Parameters:
execution
- Task executiontimeout
- Timeout taskprocess
- Future process
-
startProgressJob
Start progress job- Parameters:
execution
- Task executionaverageTime
- Average time
-
interruptExecutionJobs
Interrupt timeout timer- Parameters:
execution
- Task execution
-
startReportJob
Start report job- Parameters:
task
- Scheduler taskexecution
- Task execution
-