Class MaintainJobService
java.lang.Object
com.almis.awe.config.ServiceConfig
com.almis.awe.scheduler.service.scheduled.JobService
com.almis.awe.scheduler.service.scheduled.MaintainJobService
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
- Author:
- dfuentes
-
Constructor Summary
ConstructorDescriptionMaintainJobService
(ExecutionService executionService, MaintainService maintainService, QueryUtil queryUtil, TaskDAO taskDAO, org.springframework.context.ApplicationEventPublisher eventPublisher, com.fasterxml.jackson.databind.ObjectMapper mapper, Duration defaultTimeout, boolean isSchedulerInstance, URI remoteUrl, boolean isRemoteSecureEnabled, String remoteUser, String remotePassword, org.springframework.web.client.RestTemplate restTemplate) MaintainJobService 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
-
MaintainJobService
public MaintainJobService(ExecutionService executionService, MaintainService maintainService, QueryUtil queryUtil, TaskDAO taskDAO, org.springframework.context.ApplicationEventPublisher eventPublisher, com.fasterxml.jackson.databind.ObjectMapper mapper, Duration defaultTimeout, boolean isSchedulerInstance, URI remoteUrl, boolean isRemoteSecureEnabled, String remoteUser, String remotePassword, org.springframework.web.client.RestTemplate restTemplate) MaintainJobService constructor- Parameters:
executionService
- Execution servicemaintainService
- Maintain servicequeryUtil
- QueryUtiltaskDAO
- Task DAOeventPublisher
- Event publisherdefaultTimeout
- Default timeoutisSchedulerInstance
- Is a remote scheduler instanceremoteUrl
- Remote URLisRemoteSecureEnabled
- Remote is secured enabledremoteUser
- Remote userremotePassword
- Remote passwordmapper
- Object mapper
-
-
Method Details
-
executeJob
@Async("schedulerJobPool") public Future<ServiceData> executeJob(Task task, TaskExecution execution, org.quartz.JobDataMap dataMap) Execute Job- Specified by:
executeJob
in classJobService
- Parameters:
task
- Task to executeexecution
- ExecutiondataMap
- Job data map- Returns:
- Service data with execution data
-