Share via


SchedulingState Class

public final class SchedulingState
extends ExpandableStringEnum<SchedulingState>

SchedulingState enums.

Field Summary

Modifier and Type Field and Description
static final SchedulingState DISABLED

No new Tasks will be scheduled on the Compute Node.

static final SchedulingState ENABLED

Tasks can be scheduled on the Compute Node.

Constructor Summary

Constructor Description
SchedulingState()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of SchedulingState value.

Method Summary

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

Creates or finds a SchedulingState from its string representation.

static Collection<SchedulingState> values()

Gets known SchedulingState values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

DISABLED

public static final SchedulingState DISABLED

No new Tasks will be scheduled on the Compute Node. Tasks already running on the Compute Node may still run to completion. All Compute Nodes start with scheduling enabled.

ENABLED

public static final SchedulingState ENABLED

Tasks can be scheduled on the Compute Node.

Constructor Details

SchedulingState

@Deprecated
public SchedulingState()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of SchedulingState value.

Method Details

fromString

public static SchedulingState fromString(String name)

Creates or finds a SchedulingState from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding SchedulingState.

values

public static Collection<SchedulingState> values()

Gets known SchedulingState values.

Returns:

known SchedulingState values.

Applies to