public static enum Replicator.ReplicatorStateListener.ReplicatorState extends Enum<Replicator.ReplicatorStateListener.ReplicatorState>
| Enum Constant and Description |
|---|
CREATED
The replicator is created.
|
DESTROYED
The replicator is destroyed.
|
OFFLINE
The replicaotr is suspended by raft error or lost connection.
|
ONLINE
The replicator begins to doing it's job(replicating logs or installing snapshot).
|
| Modifier and Type | Method and Description |
|---|---|
static Replicator.ReplicatorStateListener.ReplicatorState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Replicator.ReplicatorStateListener.ReplicatorState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Replicator.ReplicatorStateListener.ReplicatorState CREATED
public static final Replicator.ReplicatorStateListener.ReplicatorState DESTROYED
public static final Replicator.ReplicatorStateListener.ReplicatorState ONLINE
public static final Replicator.ReplicatorStateListener.ReplicatorState OFFLINE
public static Replicator.ReplicatorStateListener.ReplicatorState[] values()
for (Replicator.ReplicatorStateListener.ReplicatorState c : Replicator.ReplicatorStateListener.ReplicatorState.values()) System.out.println(c);
public static Replicator.ReplicatorStateListener.ReplicatorState valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2024. All rights reserved.