@Configuration
public class AgentServicesAutoConfiguration
extends java.lang.Object
Constructor and Description |
---|
AgentServicesAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
AgentFilterServiceImpl |
agentFilterService(java.util.List<AgentMetadataInspector> agentMetadataInspectorsList)
A
AgentFilterService implementation that federates the decision to a set of
AgentMetadataInspector s. |
AgentJobService |
agentJobService(JobPersistenceService jobPersistenceService,
JobResolverService jobResolverService,
AgentFilterService agentFilterService,
io.micrometer.core.instrument.MeterRegistry meterRegistry)
Get a
AgentJobService instance if there isn't already one. |
AgentMetricsServiceImpl |
agentMetricsService(GenieHostInfo genieHostInfo,
AgentConnectionPersistenceService agentConnectionPersistenceService,
io.micrometer.core.instrument.MeterRegistry registry)
Provide an implementation of
AgentMetricsService if one hasn't been provided. |
AgentRoutingService |
agentRoutingService(AgentConnectionPersistenceService agentConnectionPersistenceService,
GenieHostInfo genieHostInfo)
Get an implementation of
AgentRoutingService if one hasn't already been defined. |
@Bean @ConditionalOnMissingBean(value=AgentJobService.class) public AgentJobService agentJobService(JobPersistenceService jobPersistenceService, JobResolverService jobResolverService, AgentFilterService agentFilterService, io.micrometer.core.instrument.MeterRegistry meterRegistry)
AgentJobService
instance if there isn't already one.jobPersistenceService
- The persistence service to usejobResolverService
- The specification service to useagentFilterService
- The agent filter service to usemeterRegistry
- The metrics registry to useAgentJobServiceImpl
instance.@Bean @ConditionalOnMissingBean(value=AgentRoutingService.class) public AgentRoutingService agentRoutingService(AgentConnectionPersistenceService agentConnectionPersistenceService, GenieHostInfo genieHostInfo)
AgentRoutingService
if one hasn't already been defined.agentConnectionPersistenceService
- The persistence service to use for agent connectionsgenieHostInfo
- The local genie host informationAgentRoutingServiceImpl
instance@Bean @ConditionalOnMissingBean(value=AgentFilterService.class) public AgentFilterServiceImpl agentFilterService(java.util.List<AgentMetadataInspector> agentMetadataInspectorsList)
AgentFilterService
implementation that federates the decision to a set of
AgentMetadataInspector
s.agentMetadataInspectorsList
- the list of inspectors.AgentFilterService
instance.@Bean @ConditionalOnMissingBean(value=AgentMetricsService.class) public AgentMetricsServiceImpl agentMetricsService(GenieHostInfo genieHostInfo, AgentConnectionPersistenceService agentConnectionPersistenceService, io.micrometer.core.instrument.MeterRegistry registry)
AgentMetricsService
if one hasn't been provided.genieHostInfo
- The Genie host informationagentConnectionPersistenceService
- Implementation of AgentConnectionPersistenceService
to get
information about running agents in the ecosystemregistry
- The metrics repositoryAgentMetricsServiceImpl