enum ServerType extends java.lang.Enum<ServerType>
| Enum Constant and Description |
|---|
ReplicaSetArbiter
A replica set arbiter.
|
ReplicaSetGhost
A replica set member that does not report a set name or a hosts list
|
ReplicaSetOther
A replica set member that is none of the other types (a passive, for example).
|
ReplicaSetPrimary
A replica set primary.
|
ReplicaSetSecondary
A replica set secondary.
|
ShardRouter
A router to a sharded cluster, i.e.
|
StandAlone
A standalone mongod server.
|
Unknown
The server type is not yet known.
|
| Modifier and Type | Method and Description |
|---|---|
abstract ClusterType |
getClusterType()
The type of the cluster to which this server belongs
|
static ServerType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ServerType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServerType StandAlone
public static final ServerType ReplicaSetPrimary
public static final ServerType ReplicaSetSecondary
public static final ServerType ReplicaSetArbiter
public static final ServerType ReplicaSetOther
public static final ServerType ReplicaSetGhost
public static final ServerType ShardRouter
public static final ServerType Unknown
public static ServerType[] values()
for (ServerType c : ServerType.values()) System.out.println(c);
public static ServerType 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 abstract ClusterType getClusterType()