Package | Description |
---|---|
com.mongodb |
The core mongodb package
|
com.mongodb.connection |
Contains classes that manage connecting to MongoDB servers.
|
com.mongodb.event |
This package contains cluster and connection event related classes
|
com.mongodb.selector |
Contains classes that determine how to select the server to connect to in order to send commands or queries.
|
Modifier and Type | Method and Description |
---|---|
protected static ClusterDescription |
TaggableReadPreference.copyClusterDescription(ClusterDescription clusterDescription,
List<ServerDescription> selectedServers) |
ClusterDescription |
MongoIncompatibleDriverException.getClusterDescription()
The cluster description which was determined to be incompatible.
|
Modifier and Type | Method and Description |
---|---|
List<ServerDescription> |
ReadPreference.choose(ClusterDescription clusterDescription)
Chooses the servers from the given cluster than match this read preference.
|
protected abstract List<ServerDescription> |
ReadPreference.chooseForNonReplicaSet(ClusterDescription clusterDescription) |
protected List<ServerDescription> |
TaggableReadPreference.chooseForNonReplicaSet(ClusterDescription clusterDescription) |
protected abstract List<ServerDescription> |
ReadPreference.chooseForReplicaSet(ClusterDescription clusterDescription) |
protected static ClusterDescription |
TaggableReadPreference.copyClusterDescription(ClusterDescription clusterDescription,
List<ServerDescription> selectedServers) |
protected List<ServerDescription> |
TaggableReadPreference.selectFreshServers(ClusterDescription clusterDescription,
List<ServerDescription> servers) |
Constructor and Description |
---|
MongoIncompatibleDriverException(String message,
ClusterDescription clusterDescription)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
ClusterDescription |
Cluster.getDescription()
Get the description of this cluster.
|
Modifier and Type | Method and Description |
---|---|
ClusterDescription |
ClusterDescriptionChangedEvent.getNewDescription()
Gets the new cluster description.
|
ClusterDescription |
ClusterDescriptionChangedEvent.getPreviousDescription()
Gets the previous cluster description.
|
Constructor and Description |
---|
ClusterDescriptionChangedEvent(ClusterId clusterId,
ClusterDescription newDescription,
ClusterDescription previousDescription)
Constructs a new instance of the event.
|
Modifier and Type | Method and Description |
---|---|
List<ServerDescription> |
LatencyMinimizingServerSelector.select(ClusterDescription clusterDescription) |
List<ServerDescription> |
ReadPreferenceServerSelector.select(ClusterDescription clusterDescription) |
List<ServerDescription> |
WritableServerSelector.select(ClusterDescription clusterDescription) |
List<ServerDescription> |
CompositeServerSelector.select(ClusterDescription clusterDescription) |
List<ServerDescription> |
ServerAddressSelector.select(ClusterDescription clusterDescription) |
List<ServerDescription> |
PrimaryServerSelector.select(ClusterDescription clusterDescription)
Deprecated.
|
List<ServerDescription> |
ServerSelector.select(ClusterDescription clusterDescription)
Select a list of server descriptions from the given cluster description according to some criteria.
|
Copyright © 2017. All Rights Reserved.