public enum ReplicaSetMemberState extends java.lang.Enum<ReplicaSetMemberState>
| Enum Constant and Description |
|---|
ARBITER |
DOWN |
NOT_RECOGNIZED |
PRIMARY |
RECOVERING |
ROLLBACK |
SECONDARY |
STARTUP |
STARTUP2 |
UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
static ReplicaSetMemberState |
getByValue(int value) |
int |
getValue() |
static ReplicaSetMemberState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ReplicaSetMemberState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReplicaSetMemberState STARTUP
public static final ReplicaSetMemberState PRIMARY
public static final ReplicaSetMemberState SECONDARY
public static final ReplicaSetMemberState RECOVERING
public static final ReplicaSetMemberState STARTUP2
public static final ReplicaSetMemberState UNKNOWN
public static final ReplicaSetMemberState ARBITER
public static final ReplicaSetMemberState DOWN
public static final ReplicaSetMemberState ROLLBACK
public static final ReplicaSetMemberState NOT_RECOGNIZED
public static ReplicaSetMemberState[] values()
for (ReplicaSetMemberState c : ReplicaSetMemberState.values()) System.out.println(c);
public static ReplicaSetMemberState valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static ReplicaSetMemberState getByValue(int value)
public int getValue()