Class ServicesAutoConfiguration
- java.lang.Object
-
- com.netflix.genie.agent.execution.services.impl.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 Summary
Constructors Constructor Description ServicesAutoConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DownloadServicedownloadService(FetchingCacheService fetchingCacheService)Provide a lazyDownloadServicebean if one hasn't already been defined.FetchingCacheServicefetchingCacheService(org.springframework.core.io.ResourceLoader resourceLoader, ArgumentDelegates.CacheArguments cacheArguments, FileLockFactory fileLockFactory, org.springframework.core.task.TaskExecutor taskExecutor)Provide a lazyFetchingCacheServiceinstance if one hasn't already been defined.com.netflix.genie.agent.execution.services.impl.JobMonitorServiceImpljobMonitorService(KillService killService, JobDirectoryManifestCreatorService manifestCreatorService, AgentJobService agentJobService, org.springframework.scheduling.TaskScheduler taskScheduler, AgentProperties agentProperties)Provide a lazyJobMonitorServicebean if one hasn't already been defined.JobSetupServicejobSetupService(DownloadService downloadService, AgentProperties agentProperties)Provide a lazyJobSetupServicebean if one hasn't already been defined.KillServicekillService(com.netflix.genie.agent.execution.statemachine.ExecutionContext executionContext, AgentProperties agentProperties)Provide a lazyKillServicebean if one hasn't already been defined.
-
-
-
Method Detail
-
downloadService
@Bean @Lazy @ConditionalOnMissingBean(DownloadService.class) public DownloadService downloadService(FetchingCacheService fetchingCacheService)
Provide a lazyDownloadServicebean if one hasn't already been defined.- Parameters:
fetchingCacheService- The cache service to use- Returns:
- A
DownloadServiceImplinstance
-
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 lazyFetchingCacheServiceinstance if one hasn't already been defined.- Parameters:
resourceLoader- The Spring Resource loader to usecacheArguments- The cache command line arguments to usefileLockFactory- The file lock factory to usetaskExecutor- The task executor to use- Returns:
- A
FetchingCacheServiceImplinstance - 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 lazyKillServicebean if one hasn't already been defined.- Parameters:
executionContext- the execution contextagentProperties- the agent properties- Returns:
- A
KillServiceImplinstance
-
jobSetupService
@Bean @Lazy @ConditionalOnMissingBean(JobSetupService.class) public JobSetupService jobSetupService(DownloadService downloadService, AgentProperties agentProperties)
Provide a lazyJobSetupServicebean if one hasn't already been defined.- Parameters:
downloadService- the download serviceagentProperties- the agent properties- Returns:
- A
JobSetupServiceImplinstance
-
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 lazyJobMonitorServicebean if one hasn't already been defined.- Parameters:
killService- the kill servicemanifestCreatorService- the manifest creator serviceagentJobService- the agent job servicetaskScheduler- the task scheduleragentProperties- the agent properties- Returns:
- A
JobMonitorServiceImplinstance
-
-