Freigeben über


OperationState Class

public final class OperationState
extends ExpandableStringEnum<OperationState>

Enum describing allowed operation states.

Field Summary

Modifier and Type Field and Description
static final OperationState CANCELED

The operation has been canceled by the user.

static final OperationState FAILED

The operation has failed.

static final OperationState NOT_STARTED

The operation has not started.

static final OperationState RUNNING

The operation is in progress.

static final OperationState SUCCEEDED

The operation has completed successfully.

Constructor Summary

Constructor Description
OperationState()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of OperationState value.

Method Summary

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

Creates or finds a OperationState from its string representation.

static Collection<OperationState> values()

Gets known OperationState values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

CANCELED

public static final OperationState CANCELED

The operation has been canceled by the user.

FAILED

public static final OperationState FAILED

The operation has failed.

NOT_STARTED

public static final OperationState NOT_STARTED

The operation has not started.

RUNNING

public static final OperationState RUNNING

The operation is in progress.

SUCCEEDED

public static final OperationState SUCCEEDED

The operation has completed successfully.

Constructor Details

OperationState

@Deprecated
public OperationState()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of OperationState value.

Method Details

fromString

public static OperationState fromString(String name)

Creates or finds a OperationState from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding OperationState.

values

public static Collection<OperationState> values()

Gets known OperationState values.

Returns:

known OperationState values.

Applies to