Class ServicesAutoConfiguration
- java.lang.Object
- 
- com.netflix.genie.web.spring.autoconfigure.services.ServicesAutoConfiguration
 
- 
 @Configuration @EnableConfigurationProperties({JobsForwardingProperties.class,JobsLocationsProperties.class,JobsMemoryProperties.class,JobsUsersProperties.class,JobsActiveLimitProperties.class,AttachmentServiceProperties.class}) public class ServicesAutoConfiguration extends java.lang.ObjectConfiguration for all the services.- Since:
- 3.0.0
 
- 
- 
Constructor SummaryConstructors Constructor Description ServicesAutoConfiguration()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ArchivedJobServiceImplarchivedJobService(DataServices dataServices, org.springframework.core.io.ResourceLoader resourceLoader, io.micrometer.core.instrument.MeterRegistry meterRegistry)Provide aArchivedJobServiceimplementation if one hasn't been provided already.AttachmentServiceattachmentService(S3ClientFactory s3ClientFactory, AttachmentServiceProperties attachmentServiceProperties, io.micrometer.core.instrument.MeterRegistry meterRegistry)The attachment service to use.JobDirectoryServerServiceImpljobDirectoryServerService(org.springframework.core.io.ResourceLoader resourceLoader, DataServices dataServices, AgentFileStreamService agentFileStreamService, ArchivedJobService archivedJobService, io.micrometer.core.instrument.MeterRegistry meterRegistry, AgentRoutingService agentRoutingService)Provide the default implementation ofJobDirectoryServerServicefor serving job directory resources.JobLaunchServiceImpljobLaunchService(DataServices dataServices, JobResolverService jobResolverService, AgentLauncherSelector agentLauncherSelector, BraveTracingComponents tracingComponents, io.micrometer.core.instrument.MeterRegistry registry)Provide aJobLaunchServiceimplementation if one isn't available.JobResolverServiceImpljobResolverService(DataServices dataServices, @NotEmpty java.util.List<ClusterSelector> clusterSelectors, CommandSelector commandSelector, io.micrometer.core.instrument.MeterRegistry registry, JobsProperties jobsProperties, org.springframework.core.env.Environment environment, BraveTracingComponents tracingComponents)Get an implementation ofJobResolverServiceif one hasn't already been defined.JobsPropertiesjobsProperties(JobsForwardingProperties forwarding, JobsLocationsProperties locations, JobsMemoryProperties memory, JobsUsersProperties users, JobsActiveLimitProperties activeLimit)Collection of properties related to job execution.RequestForwardingServiceImplrequestForwardingService(org.springframework.web.client.RestTemplate genieRestTemplate, GenieHostInfo hostInfo, JobsForwardingProperties jobsForwardingProperties)Provide a default implementation ofRequestForwardingServicefor use by other services.
 
- 
- 
- 
Method Detail- 
jobsProperties@Bean public JobsProperties jobsProperties(JobsForwardingProperties forwarding, JobsLocationsProperties locations, JobsMemoryProperties memory, JobsUsersProperties users, JobsActiveLimitProperties activeLimit) Collection of properties related to job execution.- Parameters:
- forwarding- forwarding properties
- locations- locations properties
- memory- memory properties
- users- users properties
- activeLimit- active limit properties
- Returns:
- a JobsPropertiesinstance
 
 - 
attachmentService@Bean @ConditionalOnMissingBean(AttachmentService.class) public AttachmentService attachmentService(S3ClientFactory s3ClientFactory, AttachmentServiceProperties attachmentServiceProperties, io.micrometer.core.instrument.MeterRegistry meterRegistry) throws java.io.IOException The attachment service to use.- Parameters:
- s3ClientFactory- the S3 client factory
- attachmentServiceProperties- the service properties
- meterRegistry- the meter registry
- Returns:
- The attachment service to use
- Throws:
- java.io.IOException- if the local filesystem implmentation is used and it fails to initialize
 
 - 
jobResolverService@Bean @ConditionalOnMissingBean(JobResolverService.class) public JobResolverServiceImpl jobResolverService(DataServices dataServices, @NotEmpty @NotEmpty java.util.List<ClusterSelector> clusterSelectors, CommandSelector commandSelector, io.micrometer.core.instrument.MeterRegistry registry, JobsProperties jobsProperties, org.springframework.core.env.Environment environment, BraveTracingComponents tracingComponents) Get an implementation ofJobResolverServiceif one hasn't already been defined.- Parameters:
- dataServices- The- DataServicesencapsulation instance to use
- clusterSelectors- The- ClusterSelectorimplementations to use
- commandSelector- The- CommandSelectorimplementation to use
- registry- The metrics repository to use
- jobsProperties- The properties for running a job set by the user
- environment- The Spring application- Environmentfor dynamic property resolution
- tracingComponents- The- BraveTracingComponentsto use
- Returns:
- A JobResolverServiceImplinstance
 
 - 
jobDirectoryServerService@Bean @ConditionalOnMissingBean(JobDirectoryServerService.class) public JobDirectoryServerServiceImpl jobDirectoryServerService(org.springframework.core.io.ResourceLoader resourceLoader, DataServices dataServices, AgentFileStreamService agentFileStreamService, ArchivedJobService archivedJobService, io.micrometer.core.instrument.MeterRegistry meterRegistry, AgentRoutingService agentRoutingService) Provide the default implementation ofJobDirectoryServerServicefor serving job directory resources.- Parameters:
- resourceLoader- The application resource loader used to get references to resources
- dataServices- The- DataServicesinstance to use
- agentFileStreamService- The service to request a file from an agent running a job
- archivedJobService- The- ArchivedJobServiceimplementation to use to get archived job data
- meterRegistry- The meter registry used to keep track of metrics
- agentRoutingService- The agent routing service
- Returns:
- An instance of JobDirectoryServerServiceImpl
 
 - 
jobLaunchService@Bean @ConditionalOnMissingBean(JobLaunchService.class) public JobLaunchServiceImpl jobLaunchService(DataServices dataServices, JobResolverService jobResolverService, AgentLauncherSelector agentLauncherSelector, BraveTracingComponents tracingComponents, io.micrometer.core.instrument.MeterRegistry registry) Provide aJobLaunchServiceimplementation if one isn't available.- Parameters:
- dataServices- The- DataServicesinstance to use
- jobResolverService- The- JobResolverServiceimplementation to use
- agentLauncherSelector- The- AgentLauncherSelectorimplementation to use
- tracingComponents- The- BraveTracingComponentsinstance to use
- registry- The metrics registry to use
- Returns:
- A JobLaunchServiceImplinstance
 
 - 
archivedJobService@Bean @ConditionalOnMissingBean(ArchivedJobService.class) public ArchivedJobServiceImpl archivedJobService(DataServices dataServices, org.springframework.core.io.ResourceLoader resourceLoader, io.micrometer.core.instrument.MeterRegistry meterRegistry) Provide aArchivedJobServiceimplementation if one hasn't been provided already.- Parameters:
- dataServices- The- DataServicesinstance to use
- resourceLoader- The- ResourceLoaderto use
- meterRegistry- The- MeterRegistryimplementation to use
- Returns:
- A ArchivedJobServiceImplinstance
 
 - 
requestForwardingService@Bean @ConditionalOnMissingBean(RequestForwardingService.class) public RequestForwardingServiceImpl requestForwardingService(@Qualifier("genieRestTemplate") org.springframework.web.client.RestTemplate genieRestTemplate, GenieHostInfo hostInfo, JobsForwardingProperties jobsForwardingProperties) Provide a default implementation ofRequestForwardingServicefor use by other services.- Parameters:
- genieRestTemplate- The- RestTemplateconfigured to be used to call other Genie nodes
- hostInfo- The- GenieHostInfoinstance containing introspection information about the current node
- jobsForwardingProperties- The properties for forwarding requests between Genie nodes
- Returns:
- A RequestForwardingServiceImplinstance
 
 
- 
 
-