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 AgentClientMetadata agentClientMetadata)
Perform inspection of an Agent client metadata.
|
public RejectAllJobsAgentMetadataInspector(org.springframework.core.env.Environment environment)
environment
- the environmentpublic InspectionReport inspect(@Valid @Valid AgentClientMetadata agentClientMetadata)
inspect
in interface AgentMetadataInspector
agentClientMetadata
- the agent client metadata