public enum ClusterType extends Enum<ClusterType>
| Enum Constant and Description | 
|---|
REPLICA_SET
The replica set type cluster. 
 | 
SHARDED
The sharded type cluster using 'mongos' servers. 
 | 
STAND_ALONE
A single 'mongod' server. 
 | 
| 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 REPLICA_SET
public static final ClusterType SHARDED
public static final ClusterType STAND_ALONE
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 nullCopyright © 2011-2013 Allanbank Consulting, Inc.. All Rights Reserved.