ServerState Class

public final class ServerState
extends ExpandableStringEnum<ServerState>

A state of a server that is visible to user.

Field Summary

Modifier and Type Field and Description
static final ServerState DISABLED

Static value Disabled for ServerState.

static final ServerState DROPPING

Static value Dropping for ServerState.

static final ServerState READY

Static value Ready for ServerState.

Constructor Summary

Constructor Description
ServerState()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ServerState value.

Method Summary

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

Creates or finds a ServerState from its string representation.

static Collection<ServerState> values()

Gets known ServerState values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

DISABLED

public static final ServerState DISABLED

Static value Disabled for ServerState.

DROPPING

public static final ServerState DROPPING

Static value Dropping for ServerState.

READY

public static final ServerState READY

Static value Ready for ServerState.

Constructor Details

ServerState

@Deprecated
public ServerState()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ServerState value.

Method Details

fromString

public static ServerState fromString(String name)

Creates or finds a ServerState from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding ServerState.

values

public static Collection values()

Gets known ServerState values.

Returns:

known ServerState values.

Applies to