public enum NodeRole extends Enum<NodeRole>
Enum Constant and Description |
---|
DETACHED
(Local) node is not connected to the group
|
MASTER
Node is master.
|
REPLICA
Node is replica.
|
UNREACHABLE
(Remote) node is unreachable.
|
WAITING
Node is awaiting an election result, or may be awaiting more nodes to join in order that an election may be held.
|
Modifier and Type | Method and Description |
---|---|
static NodeRole |
fromJeState(com.sleepycat.je.rep.ReplicatedEnvironment.State state) |
static NodeRole |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NodeRole[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NodeRole MASTER
public static final NodeRole REPLICA
public static final NodeRole WAITING
public static final NodeRole UNREACHABLE
public static final NodeRole DETACHED
public static NodeRole[] values()
for (NodeRole c : NodeRole.values()) System.out.println(c);
public static NodeRole 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 nullpublic static NodeRole fromJeState(com.sleepycat.je.rep.ReplicatedEnvironment.State state)
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.