Share via


CommandState Class

public final class CommandState
extends ExpandableStringEnum<CommandState>

The state of the command. This is ignored if submitted.

Field Summary

Modifier and Type Field and Description
static final CommandState ACCEPTED

Static value Accepted for CommandState.

static final CommandState FAILED

Static value Failed for CommandState.

static final CommandState RUNNING

Static value Running for CommandState.

static final CommandState SUCCEEDED

Static value Succeeded for CommandState.

static final CommandState UNKNOWN

Static value Unknown for CommandState.

Constructor Summary

Constructor Description
CommandState()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of CommandState value.

Method Summary

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

Creates or finds a CommandState from its string representation.

static Collection<CommandState> values()

Gets known CommandState values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

ACCEPTED

public static final CommandState ACCEPTED

Static value Accepted for CommandState.

FAILED

public static final CommandState FAILED

Static value Failed for CommandState.

RUNNING

public static final CommandState RUNNING

Static value Running for CommandState.

SUCCEEDED

public static final CommandState SUCCEEDED

Static value Succeeded for CommandState.

UNKNOWN

public static final CommandState UNKNOWN

Static value Unknown for CommandState.

Constructor Details

CommandState

@Deprecated
public CommandState()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of CommandState value.

Method Details

fromString

public static CommandState fromString(String name)

Creates or finds a CommandState from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding CommandState.

values

public static Collection<CommandState> values()

Gets known CommandState values.

Returns:

known CommandState values.

Applies to