Share via


AllocationState Class

public final class AllocationState
extends ExpandableStringEnum<AllocationState>

AllocationState enums.

Field Summary

Modifier and Type Field and Description
static final AllocationState RESIZING

The Pool is resizing; that is, Compute Nodes are being added to or removed from the Pool.

static final AllocationState STEADY

The Pool is not resizing.

static final AllocationState STOPPING

The Pool was resizing, but the user has requested that the resize be stopped, but the stop request has not yet been completed.

Constructor Summary

Constructor Description
AllocationState()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of AllocationState value.

Method Summary

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

Creates or finds a AllocationState from its string representation.

static Collection<AllocationState> values()

Gets known AllocationState values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

RESIZING

public static final AllocationState RESIZING

The Pool is resizing; that is, Compute Nodes are being added to or removed from the Pool.

STEADY

public static final AllocationState STEADY

The Pool is not resizing. There are no changes to the number of Compute Nodes in the Pool in progress. A Pool enters this state when it is created and when no operations are being performed on the Pool to change the number of Compute Nodes.

STOPPING

public static final AllocationState STOPPING

The Pool was resizing, but the user has requested that the resize be stopped, but the stop request has not yet been completed.

Constructor Details

AllocationState

@Deprecated
public AllocationState()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of AllocationState value.

Method Details

fromString

public static AllocationState fromString(String name)

Creates or finds a AllocationState from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding AllocationState.

values

public static Collection<AllocationState> values()

Gets known AllocationState values.

Returns:

known AllocationState values.

Applies to