Class AgentFilterServiceImpl

java.lang.Object
com.netflix.genie.web.agent.services.impl.AgentFilterServiceImpl
All Implemented Interfaces:
AgentFilterService

public class AgentFilterServiceImpl extends Object implements 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 Details

    • AgentFilterServiceImpl

      public AgentFilterServiceImpl(List<AgentMetadataInspector> agentMetadataInspectorList)
      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 of AgentMetadataInspector and stops at the first one that rejects. If none rejects, then the client is accepted.
      Specified by:
      inspectAgentMetadata in interface AgentFilterService
      Parameters:
      agentClientMetadata - the agent client metadata
      Returns:
      an inspection report