public enum ClusterType extends 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(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(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 null