AgentState Class

public final class AgentState
extends ExpandableStringEnum<AgentState>

The operational state of an agent.

Field Summary

Modifier and Type Field and Description
static final AgentState DISABLED

Agent endpoint rejects all requests.

static final AgentState ENABLED

Agent endpoint accepts requests.

Constructor Summary

Constructor Description
AgentState()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of AgentState value.

Method Summary

Modifier and Type Method and Description
static AgentState fromString(String name)

Creates or finds a AgentState from its string representation.

static Collection<AgentState> values()

Gets known AgentState values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

DISABLED

public static final AgentState DISABLED

Agent endpoint rejects all requests.

ENABLED

public static final AgentState ENABLED

Agent endpoint accepts requests. This is the default state on creation.

Constructor Details

AgentState

@Deprecated
public AgentState()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of AgentState value.

Method Details

fromString

public static AgentState fromString(String name)

Creates or finds a AgentState from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding AgentState.

values

public static Collection<AgentState> values()

Gets known AgentState values.

Returns:

known AgentState values.

Applies to