Class RejectAllJobsAgentMetadataInspector

java.lang.Object
com.netflix.genie.web.agent.inspectors.impl.RejectAllJobsAgentMetadataInspector
All Implemented Interfaces:
AgentMetadataInspector

public class RejectAllJobsAgentMetadataInspector extends Object implements AgentMetadataInspector
An AgentMetadataInspector that accepts or rejects all agents based on the value of an environment property. This mechanism allows temporarily disabling all new inbound jobs while at the same time keeping the servers running.
Since:
4.0.0
  • Constructor Details

    • RejectAllJobsAgentMetadataInspector

      public RejectAllJobsAgentMetadataInspector(org.springframework.core.env.Environment environment)
      Constructor.
      Parameters:
      environment - the environment
  • Method Details

    • inspect

      public InspectionReport inspect(@Valid @Valid com.netflix.genie.common.internal.dtos.AgentClientMetadata agentClientMetadata)
      Perform inspection of an Agent client metadata.
      Specified by:
      inspect in interface AgentMetadataInspector
      Parameters:
      agentClientMetadata - the agent client metadata
      Returns:
      the inspection outcome