Class CommandJobService
java.lang.Object
com.almis.awe.config.ServiceConfig
com.almis.awe.scheduler.service.scheduled.JobService
com.almis.awe.scheduler.service.scheduled.CommandJobService
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
- Author:
- dfuentes
-
Constructor Summary
ConstructorDescriptionCommandJobService
(ExecutionService executionService, MaintainService maintainService, QueryUtil queryUtil, TaskDAO taskDAO, org.springframework.context.ApplicationEventPublisher eventPublisher, CommandDAO commandDAO, Duration defaultTimeout) Autowired constructor -
Method Summary
Modifier and TypeMethodDescriptionexecuteJob
(Task task, TaskExecution execution, org.quartz.JobDataMap dataMap) Execute jobMethods inherited from class com.almis.awe.scheduler.service.scheduled.JobService
getTimeout, launchBatch, startTask
Methods inherited from class com.almis.awe.config.ServiceConfig
containsBean, getApplicationContext, getBean, getBean, getElements, getLocale, getLocale, getProperty, getProperty, getRequest, getSession, setApplicationContext
-
Constructor Details
-
CommandJobService
public CommandJobService(ExecutionService executionService, MaintainService maintainService, QueryUtil queryUtil, TaskDAO taskDAO, org.springframework.context.ApplicationEventPublisher eventPublisher, CommandDAO commandDAO, Duration defaultTimeout) Autowired constructor- Parameters:
executionService
- Timeout service
-
-
Method Details
-
executeJob
@Async("schedulerJobPool") public Future<ServiceData> executeJob(Task task, TaskExecution execution, org.quartz.JobDataMap dataMap) Description copied from class:JobService
Execute job- Specified by:
executeJob
in classJobService
- Parameters:
task
- Taskexecution
- Task executiondataMap
- Job data map- Returns:
- Future job result
-