public class RejectAllJobsAgentMetadataInspector extends java.lang.Object implements AgentMetadataInspector
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.| Constructor and Description |
|---|
RejectAllJobsAgentMetadataInspector(org.springframework.core.env.Environment environment)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
InspectionReport |
inspect(@Valid com.netflix.genie.common.external.dtos.v4.AgentClientMetadata agentClientMetadata)
Perform inspection of an Agent client metadata.
|
public RejectAllJobsAgentMetadataInspector(org.springframework.core.env.Environment environment)
environment - the environmentpublic InspectionReport inspect(@Valid @Valid com.netflix.genie.common.external.dtos.v4.AgentClientMetadata agentClientMetadata)
inspect in interface AgentMetadataInspectoragentClientMetadata - the agent client metadata