public enum ClusterType extends java.lang.Enum<ClusterType>
Enum Constant and Description |
---|
REPLICA_SET
A replicas set cluster.
|
SHARDED
A sharded cluster, connected via one or more mongos servers.
|
STANDALONE
A standalone mongod server.
|
UNKNOWN
The cluster type is not yet known.
|
Modifier and Type | Method and Description |
---|---|
static ClusterType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ClusterType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClusterType STANDALONE
public static final ClusterType REPLICA_SET
public static final ClusterType SHARDED
public static final ClusterType UNKNOWN
public static ClusterType[] values()
for (ClusterType c : ClusterType.values()) System.out.println(c);
public static ClusterType 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 null