Package | Description |
---|---|
com.mongodb.connection |
Contains classes that manage connecting to MongoDB servers.
|
Modifier and Type | Field and Description |
---|---|
private ClusterType |
MultiServerCluster.clusterType |
private ClusterType |
ClusterSettings.requiredClusterType |
private ClusterType |
ClusterSettings.Builder.requiredClusterType |
private ClusterType |
ClusterDescription.type |
Modifier and Type | Method and Description |
---|---|
ClusterType |
ServerDescription.getClusterType()
Gets the type of the cluster this server is in (for example, replica set).
|
abstract ClusterType |
ServerType.getClusterType()
The type of the cluster to which this server belongs
|
ClusterType |
ClusterSettings.getRequiredClusterType()
Get
|
ClusterType |
ClusterDescription.getType()
Gets the specific type of this cluster
|
static ClusterType |
ClusterType.valueOf(java.lang.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,
java.util.List<ServerDescription> serverDescriptions)
Creates a new ClusterDescription.
|
ClusterDescription(ClusterConnectionMode connectionMode,
ClusterType type,
java.util.List<ServerDescription> serverDescriptions,
ClusterSettings clusterSettings,
ServerSettings serverSettings)
Creates a new ClusterDescription.
|