NodeState Class

public final class NodeState
extends ExpandableStringEnum<NodeState>

The state of the node in Cassandra ring.

Field Summary

Modifier and Type Field and Description
static final NodeState JOINING

Static value Joining for NodeState.

static final NodeState LEAVING

Static value Leaving for NodeState.

static final NodeState MOVING

Static value Moving for NodeState.

static final NodeState NORMAL

Static value Normal for NodeState.

static final NodeState STOPPED

Static value Stopped for NodeState.

Constructor Summary

Constructor Description
NodeState()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of NodeState value.

Method Summary

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

Creates or finds a NodeState from its string representation.

static Collection<NodeState> values()

Gets known NodeState values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

JOINING

public static final NodeState JOINING

Static value Joining for NodeState.

LEAVING

public static final NodeState LEAVING

Static value Leaving for NodeState.

MOVING

public static final NodeState MOVING

Static value Moving for NodeState.

NORMAL

public static final NodeState NORMAL

Static value Normal for NodeState.

STOPPED

public static final NodeState STOPPED

Static value Stopped for NodeState.

Constructor Details

NodeState

@Deprecated
public NodeState()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of NodeState value.

Method Details

fromString

public static NodeState fromString(String name)

Creates or finds a NodeState from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding NodeState.

values

public static Collection values()

Gets known NodeState values.

Returns:

known NodeState values.

Applies to