Package | Description |
---|---|
com.mongodb.connection |
Contains classes that manage connecting to MongoDB servers.
|
Modifier and Type | Method and Description |
---|---|
abstract ClusterType |
ServerType.getClusterType()
The type of the cluster to which this server belongs
|
ClusterType |
ServerDescription.getClusterType()
Gets the type of the cluster this server is in (for example, replica set).
|
ClusterType |
ClusterSettings.getRequiredClusterType()
Get
|
ClusterType |
ClusterDescription.getType()
Gets the specific type of this cluster
|
static ClusterType |
ClusterType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ClusterType[] |
ClusterType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
ClusterSettings.Builder |
ClusterSettings.Builder.requiredClusterType(ClusterType requiredClusterType)
Sets the required cluster type for the cluster.
|
Constructor and Description |
---|
ClusterDescription(ClusterConnectionMode connectionMode,
ClusterType type,
List<ServerDescription> serverDescriptions)
Creates a new ClusterDescription.
|
Copyright © 2016. All Rights Reserved.