PowerState Class

public final class PowerState
extends ExpandableStringEnum<PowerState>

Power state of the Service.

Field Summary

Modifier and Type Field and Description
static final PowerState RUNNING

Static value Running for PowerState.

static final PowerState STOPPED

Static value Stopped for PowerState.

Constructor Summary

Constructor Description
PowerState()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of PowerState value.

Method Summary

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

Creates or finds a PowerState from its string representation.

static Collection<PowerState> values()

Gets known PowerState values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

RUNNING

public static final PowerState RUNNING

Static value Running for PowerState.

STOPPED

public static final PowerState STOPPED

Static value Stopped for PowerState.

Constructor Details

PowerState

@Deprecated
public PowerState()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of PowerState value.

Method Details

fromString

public static PowerState fromString(String name)

Creates or finds a PowerState from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding PowerState.

values

public static Collection values()

Gets known PowerState values.

Returns:

known PowerState values.

Applies to