enum ClusterType extends java.lang.Enum<ClusterType>
| Enum Constant and Description |
|---|
ReplicaSet
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 ReplicaSet
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