public enum ReplicaSetMemberStatus extends java.lang.Enum<ReplicaSetMemberStatus>
Enum Constant and Description |
---|
ARBITER |
DOWN |
FATAL |
PRIMARY |
RECOVERING |
ROLLBACK |
SECONDARY |
SHUNNED |
STARTUP |
STARTUP2 |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static ReplicaSetMemberStatus |
fromCode(int code) |
java.lang.String |
toString() |
static ReplicaSetMemberStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ReplicaSetMemberStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReplicaSetMemberStatus STARTUP
public static final ReplicaSetMemberStatus PRIMARY
public static final ReplicaSetMemberStatus SECONDARY
public static final ReplicaSetMemberStatus RECOVERING
public static final ReplicaSetMemberStatus FATAL
public static final ReplicaSetMemberStatus STARTUP2
public static final ReplicaSetMemberStatus UNKNOWN
public static final ReplicaSetMemberStatus ARBITER
public static final ReplicaSetMemberStatus DOWN
public static final ReplicaSetMemberStatus ROLLBACK
public static final ReplicaSetMemberStatus SHUNNED
public static ReplicaSetMemberStatus[] values()
for (ReplicaSetMemberStatus c : ReplicaSetMemberStatus.values()) System.out.println(c);
public static ReplicaSetMemberStatus 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 ReplicaSetMemberStatus fromCode(int code)
public java.lang.String toString()
toString
in class java.lang.Enum<ReplicaSetMemberStatus>