ReplicationState Class

public final class ReplicationState
extends ExpandableStringEnum<ReplicationState>

Replication state (PENDING, SEEDING, CATCHUP, SUSPENDED).

Field Summary

Modifier and Type Field and Description
static final ReplicationState CATCH_UP

Static value CATCH_UP for ReplicationState.

static final ReplicationState PENDING

Static value PENDING for ReplicationState.

static final ReplicationState SEEDING

Static value SEEDING for ReplicationState.

static final ReplicationState SUSPENDED

Static value SUSPENDED for ReplicationState.

Constructor Summary

Constructor Description
ReplicationState()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ReplicationState value.

Method Summary

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

Creates or finds a ReplicationState from its string representation.

static Collection<ReplicationState> values()

Gets known ReplicationState values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

CATCH_UP

public static final ReplicationState CATCH_UP

Static value CATCH_UP for ReplicationState.

PENDING

public static final ReplicationState PENDING

Static value PENDING for ReplicationState.

SEEDING

public static final ReplicationState SEEDING

Static value SEEDING for ReplicationState.

SUSPENDED

public static final ReplicationState SUSPENDED

Static value SUSPENDED for ReplicationState.

Constructor Details

ReplicationState

@Deprecated
public ReplicationState()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ReplicationState value.

Method Details

fromString

public static ReplicationState fromString(String name)

Creates or finds a ReplicationState from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding ReplicationState.

values

public static Collection values()

Gets known ReplicationState values.

Returns:

known ReplicationState values.

Applies to