Class RejectAllJobsAgentMetadataInspector
java.lang.Object
com.netflix.genie.web.agent.inspectors.impl.RejectAllJobsAgentMetadataInspector
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionRejectAllJobsAgentMetadataInspector
(org.springframework.core.env.Environment environment) Constructor. -
Method Summary
Modifier and TypeMethodDescriptioninspect
(@Valid AgentClientMetadata agentClientMetadata) Perform inspection of an Agent client metadata.
-
Constructor Details
-
RejectAllJobsAgentMetadataInspector
public RejectAllJobsAgentMetadataInspector(org.springframework.core.env.Environment environment) Constructor.- Parameters:
environment
- the environment
-
-
Method Details
-
inspect
Perform inspection of an Agent client metadata.- Specified by:
inspect
in interfaceAgentMetadataInspector
- Parameters:
agentClientMetadata
- the agent client metadata- Returns:
- the inspection outcome
-