Partager via


ExecutionState Class

public final class ExecutionState
extends ExpandableStringEnum<ExecutionState>

Script execution status.

Field Summary

Modifier and Type Field and Description
static final ExecutionState CANCELED

Static value Canceled for ExecutionState.

static final ExecutionState FAILED

Static value Failed for ExecutionState.

static final ExecutionState PENDING

Static value Pending for ExecutionState.

static final ExecutionState RUNNING

Static value Running for ExecutionState.

static final ExecutionState SUCCEEDED

Static value Succeeded for ExecutionState.

static final ExecutionState TIMED_OUT

Static value TimedOut for ExecutionState.

static final ExecutionState UNKNOWN

Static value Unknown for ExecutionState.

Constructor Summary

Constructor Description
ExecutionState()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ExecutionState value.

Method Summary

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

Creates or finds a ExecutionState from its string representation.

static Collection<ExecutionState> values()

Gets known ExecutionState values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

CANCELED

public static final ExecutionState CANCELED

Static value Canceled for ExecutionState.

FAILED

public static final ExecutionState FAILED

Static value Failed for ExecutionState.

PENDING

public static final ExecutionState PENDING

Static value Pending for ExecutionState.

RUNNING

public static final ExecutionState RUNNING

Static value Running for ExecutionState.

SUCCEEDED

public static final ExecutionState SUCCEEDED

Static value Succeeded for ExecutionState.

TIMED_OUT

public static final ExecutionState TIMED_OUT

Static value TimedOut for ExecutionState.

UNKNOWN

public static final ExecutionState UNKNOWN

Static value Unknown for ExecutionState.

Constructor Details

ExecutionState

@Deprecated
public ExecutionState()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ExecutionState value.

Method Details

fromString

public static ExecutionState fromString(String name)

Creates or finds a ExecutionState from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding ExecutionState.

values

public static Collection values()

Gets known ExecutionState values.

Returns:

known ExecutionState values.

Applies to