Class AgentFilterServiceImpl
java.lang.Object
com.netflix.genie.web.agent.services.impl.AgentFilterServiceImpl
- All Implemented Interfaces:
AgentFilterService
Implementation of
AgentFilterService which delegates iterates through an ordered list of
AgentMetadataInspector. Giving them the chance to accept and reject agents based on their provided
metadata. This filter accepts by default if none of the inspectors rejected.- Since:
- 4.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionAgentFilterServiceImpl(List<AgentMetadataInspector> agentMetadataInspectorList) Constructor. -
Method Summary
Modifier and TypeMethodDescriptioninspectAgentMetadata(@Valid com.netflix.genie.common.internal.dtos.AgentClientMetadata agentClientMetadata) Inspect agent metadata and decide to accept or reject it.
-
Constructor Details
-
AgentFilterServiceImpl
Constructor.- Parameters:
agentMetadataInspectorList- the list of inspectors to consult
-
-
Method Details
-
inspectAgentMetadata
public InspectionReport inspectAgentMetadata(@Valid @Valid com.netflix.genie.common.internal.dtos.AgentClientMetadata agentClientMetadata) Inspect agent metadata and decide to accept or reject it. This implementation iterates over the given set ofAgentMetadataInspectorand stops at the first one that rejects. If none rejects, then the client is accepted.- Specified by:
inspectAgentMetadatain interfaceAgentFilterService- Parameters:
agentClientMetadata- the agent client metadata- Returns:
- an inspection report
-