Package com.netflix.genie.web.properties
Class AgentFilterProperties
java.lang.Object
com.netflix.genie.web.properties.AgentFilterProperties
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.EnvironmentAware
@ConfigurationProperties(prefix="genie.agent.filter")
@Validated
public class AgentFilterProperties
extends Object
implements org.springframework.context.EnvironmentAware
Properties for the
AgentFilterService.- Since:
- 4.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringProperty that enables the default implementation ofAgentFilterService. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the (dynamic) property value containing a regular expression used to blacklist agent versions.Get the (dynamic) property value representing the minimum agent version allowed to connect.Get the (dynamic) property value containing a regular expression used to whitelist agent versions.voidsetEnvironment(org.springframework.core.env.Environment environment)
-
Field Details
-
VERSION_FILTER_ENABLED_PROPERTY
Property that enables the default implementation ofAgentFilterService.- See Also:
-
-
Constructor Details
-
AgentFilterProperties
public AgentFilterProperties()
-
-
Method Details
-
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment) - Specified by:
setEnvironmentin interfaceorg.springframework.context.EnvironmentAware
-
getMinimumVersion
Get the (dynamic) property value representing the minimum agent version allowed to connect.- Returns:
- a version string or null if a minimum is not active
-
getBlacklistedVersions
Get the (dynamic) property value containing a regular expression used to blacklist agent versions.- Returns:
- a string containing a regular expression pattern, or null if one is not set
-
getWhitelistedVersions
Get the (dynamic) property value containing a regular expression used to whitelist agent versions.- Returns:
- a string containing a regular expression pattern, or null if one is not set
-