Class AgentConfigurationServiceImpl
java.lang.Object
com.netflix.genie.web.agent.services.impl.AgentConfigurationServiceImpl
- All Implemented Interfaces:
AgentConfigurationService
This implementation of
AgentConfigurationService
forwards properties set on the server that match a given
set of regular expressions, plus any additional ones specified in configuration.
It utilizes a cache to avoid recomputing the set of properties and values for every request.- Since:
- 4.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionAgentConfigurationServiceImpl
(AgentConfigurationProperties agentConfigurationProperties, PropertiesMapCache propertyMapCache, io.micrometer.core.instrument.MeterRegistry registry) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionProduce a list of properties to be sent down to the agents running jobs.
-
Constructor Details
-
AgentConfigurationServiceImpl
public AgentConfigurationServiceImpl(AgentConfigurationProperties agentConfigurationProperties, PropertiesMapCache propertyMapCache, io.micrometer.core.instrument.MeterRegistry registry) Constructor.- Parameters:
agentConfigurationProperties
- the propertiespropertyMapCache
- the property map cacheregistry
- the metrics registry
-
-
Method Details
-
getAgentProperties
Produce a list of properties to be sent down to the agents running jobs.- Specified by:
getAgentProperties
in interfaceAgentConfigurationService
- Returns:
- a map of properties and values
-