Class ServicesAutoConfiguration


  • @Configuration
    @EnableConfigurationProperties(AgentProperties.class)
    @AutoConfigureAfter(AwsAutoConfiguration.class)
    public class ServicesAutoConfiguration
    extends java.lang.Object
    Spring auto configuration for the service tier of an Agent process.
    Since:
    4.0.0
    • Constructor Detail

      • ServicesAutoConfiguration

        public ServicesAutoConfiguration()
    • Method Detail

      • fetchingCacheService

        @Bean
        @Lazy
        @ConditionalOnMissingBean(FetchingCacheService.class)
        public FetchingCacheService fetchingCacheService​(org.springframework.core.io.ResourceLoader resourceLoader,
                                                         ArgumentDelegates.CacheArguments cacheArguments,
                                                         FileLockFactory fileLockFactory,
                                                         @Qualifier("sharedAgentTaskExecutor")
                                                         org.springframework.core.task.TaskExecutor taskExecutor)
                                                  throws java.io.IOException
        Provide a lazy FetchingCacheService instance if one hasn't already been defined.
        Parameters:
        resourceLoader - The Spring Resource loader to use
        cacheArguments - The cache command line arguments to use
        fileLockFactory - The file lock factory to use
        taskExecutor - The task executor to use
        Returns:
        A FetchingCacheServiceImpl instance
        Throws:
        java.io.IOException - On error creating the instance
      • killService

        @Bean
        @Lazy
        @ConditionalOnMissingBean(KillService.class)
        public KillService killService​(com.netflix.genie.agent.execution.statemachine.ExecutionContext executionContext,
                                       AgentProperties agentProperties)
        Provide a lazy KillService bean if one hasn't already been defined.
        Parameters:
        executionContext - the execution context
        agentProperties - the agent properties
        Returns:
        A KillServiceImpl instance
      • jobMonitorService

        @Bean
        @Lazy
        @ConditionalOnMissingBean(JobMonitorService.class)
        public com.netflix.genie.agent.execution.services.impl.JobMonitorServiceImpl jobMonitorService​(KillService killService,
                                                                                                       JobDirectoryManifestCreatorService manifestCreatorService,
                                                                                                       AgentJobService agentJobService,
                                                                                                       @Qualifier("sharedAgentTaskScheduler")
                                                                                                       org.springframework.scheduling.TaskScheduler taskScheduler,
                                                                                                       AgentProperties agentProperties)
        Provide a lazy JobMonitorService bean if one hasn't already been defined.
        Parameters:
        killService - the kill service
        manifestCreatorService - the manifest creator service
        agentJobService - the agent job service
        taskScheduler - the task scheduler
        agentProperties - the agent properties
        Returns:
        A JobMonitorServiceImpl instance