Class SchedulerConfig

java.lang.Object
com.almis.awe.scheduler.autoconfigure.SchedulerConfig

@Configuration @EnableConfigurationProperties(SchedulerConfigProperties.class) public class SchedulerConfig extends Object
Scheduler module configuration
  • Constructor Details

  • Method Details

    • scheduler

      @Bean public org.quartz.Scheduler scheduler(org.springframework.scheduling.quartz.SchedulerFactoryBean factory)
      Define Scheduler
      Returns:
      Scheduler
    • runtime

      @Bean public Runtime runtime()
      Define Runtime
      Returns:
      Runtime
    • ftpClient

      @Bean @Scope("prototype") public org.apache.commons.net.ftp.FTPClient ftpClient()
      Define FTP Client
      Returns:
      FTP Client
    • fileClient

      @Bean @Scope("prototype") public FileClient fileClient()
      Define FileClient
      Returns:
      FileClient
    • schedulerService

      @Bean public SchedulerService schedulerService(TaskDAO taskDAO, SchedulerDAO schedulerDAO, CalendarDAO calendarDAO)
      Define Scheduler service
      Returns:
      Scheduler service
    • taskService

      @Bean public TaskService taskService(QueryService queryService, QueryUtil queryUtil, TaskDAO taskDAO)
      Define Task service
      Returns:
      Task service
    • timeoutService

      @Bean public ExecutionService timeoutService(org.quartz.Scheduler scheduler)
      Define Scheduler service
      Returns:
      Scheduler service
    • maintainJobService

      @Bean public MaintainJobService maintainJobService(ExecutionService executionService, MaintainService maintainService, QueryUtil queryUtil, TaskDAO taskDAO, org.springframework.context.ApplicationEventPublisher eventPublisher)
      Define Maintain job service
      Returns:
      Scheduler service
    • commandJobService

      @Bean public CommandJobService commandJobService(ExecutionService executionService, MaintainService maintainService, QueryUtil queryUtil, TaskDAO taskDAO, org.springframework.context.ApplicationEventPublisher eventPublisher, CommandDAO commandDAO)
      Define Command job service
      Returns:
      Scheduler service
    • progressJob

      @Bean @Scope("prototype") public ProgressJob progressJob(org.springframework.context.ApplicationEventPublisher eventPublisher)
      Define progress job
      Returns:
      Scheduler job
    • timeoutJob

      @Bean @Scope("prototype") public TimeoutJob timeoutJob()
      Define timeout job
      Returns:
      Scheduler job
    • maintainJob

      @Bean @Scope("prototype") public MaintainJob maintainJob(MaintainJobService jobService)
      Define Maintain job
      Returns:
      Scheduler job
    • commandJob

      @Bean @Scope("prototype") public CommandJob commandJob(CommandJobService jobService)
      Define Command job
      Returns:
      Scheduler job
    • maintainReportJob

      @Bean @Scope("prototype") public MaintainReportJob maintainReportJob(QueryUtil queryUtil, MaintainService maintainService)
      Define maintain report job
      Returns:
      Scheduler job
    • emailReportJob

      @Bean @Scope("prototype") public EmailReportJob emailReportJob(QueryUtil queryUtil, MaintainService maintainService, QueryService queryService)
      Define email report job
      Returns:
      Scheduler job
    • broadcastReportJob

      @Bean @Scope("prototype") public BroadcastReportJob broadcastReportJob(BroadcastService broadcastService)
      Define broadcast report job
      Returns:
      Scheduler job
    • databaseDAO

      @Bean public DatabaseDAO databaseDAO(QueryService queryService)
      Database Data Object Access
      Returns:
      Database DAO
    • calendarDAO

      @Bean public CalendarDAO calendarDAO(org.quartz.Scheduler scheduler, QueryService queryService, QueryUtil queryUtil, DataListService dataListService)
      Calendar Data Object Access
      Returns:
      Calendar DAO
    • schedulerDAO

      @Bean public SchedulerDAO schedulerDAO(org.quartz.Scheduler scheduler, CalendarDAO calendarDAO, TaskService taskService, SchedulerTriggerListener triggerListener, SchedulerJobListener jobListener)
      Scheduler Data Object Access
      Returns:
      Scheduler DAO
    • taskDAO

      @Bean public TaskDAO taskDAO(org.quartz.Scheduler scheduler, QueryService queryService, MaintainService maintainService, QueryUtil queryUtil, CalendarDAO calendarDAO, ServerDAO serverDAO, FileChecker fileChecker, DataListService dataListService)
      Task Data Object Access
      Returns:
      Task DAO
    • fileDAO

      @Bean public FileDAO fileDAO(MaintainService maintainService, QueryUtil queryUtil)
      File Data Object Access
      Returns:
      File DAO
    • serverDAO

      @Bean public ServerDAO serverDAO(QueryService queryService, QueryUtil queryUtil, DataListService dataListService)
      Server Data Object Access
      Returns:
      File DAO
    • commandDAO

      @Bean public CommandDAO commandDAO(Runtime runtime)
      Server Data Object Access
      Returns:
      File DAO
    • fileChecker

      @Bean public FileChecker fileChecker(FTPFileChecker ftpFileChecker, FolderFileChecker folderFileChecker)
      Define file checker
      Returns:
      File checker
    • ftpFileChecker

      @Bean public FTPFileChecker ftpFileChecker(FileDAO fileDAO, org.apache.commons.net.ftp.FTPClient ftpClient)
      Define ftp file checker
      Returns:
      FTP File checker
    • folderFileChecker

      @Bean public FolderFileChecker folderFileChecker(FileDAO fileDAO, FileClient fileClient)
      Define folder file checker
      Returns:
      Folder File checker
    • schedulerTriggerListener

      @Bean public SchedulerTriggerListener schedulerTriggerListener(TaskDAO taskDAO)
      LISTENERS
    • schedulerJobListener

      @Bean public SchedulerJobListener schedulerJobListener(org.springframework.context.ApplicationEventPublisher eventPublisher)
    • schedulerEventListener

      @Bean public SchedulerEventListener schedulerEventListener(BroadcastService broadcastService, AweConnectionTracker connectionTracker, TaskDAO taskDAO)