Class MaintainJobService

All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

public class MaintainJobService extends JobService
Author:
dfuentes
  • 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)
      MaintainJobService constructor
      Parameters:
      executionService - Execution service
      maintainService - Maintain service
      queryUtil - QueryUtil
      taskDAO - Task DAO
      eventPublisher - Event publisher
      defaultTimeout - Default timeout
      isSchedulerInstance - Is a remote scheduler instance
      remoteUrl - Remote URL
      isRemoteSecureEnabled - Remote is secured enabled
      remoteUser - Remote user
      remotePassword - Remote password
      mapper - 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 class JobService
      Parameters:
      task - Task to execute
      execution - Execution
      dataMap - Job data map
      Returns:
      Service data with execution data