Package | Description |
---|---|
com.mongodb |
The core mongodb package
|
com.mongodb.binding |
This package contains classes that manage binding to MongoDB servers for various operations.
|
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 |
---|---|
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 List<ServerDescription> |
TaggableReadPreference.selectFreshServers(ClusterDescription clusterDescription,
List<ServerDescription> servers) |
Modifier and Type | Method and Description |
---|---|
protected static ClusterDescription |
TaggableReadPreference.copyClusterDescription(ClusterDescription clusterDescription,
List<ServerDescription> selectedServers) |
protected List<ServerDescription> |
TaggableReadPreference.selectFreshServers(ClusterDescription clusterDescription,
List<ServerDescription> servers) |
Modifier and Type | Method and Description |
---|---|
ServerDescription |
ConnectionSource.getServerDescription()
Gets the current description of this source.
|
ServerDescription |
AsyncConnectionSource.getServerDescription()
Gets the current description of this source.
|
Constructor and Description |
---|
AsyncSingleConnectionReadBinding(ReadPreference readPreference,
ServerDescription serverDescription,
AsyncConnection connection)
Construct an instance.
|
SingleConnectionReadBinding(ReadPreference readPreference,
ServerDescription serverDescription,
Connection connection)
Construct an instance.
|
Modifier and Type | Method and Description |
---|---|
ServerDescription |
ServerDescription.Builder.build()
Create a new ServerDescription from the settings in this builder.
|
ServerDescription |
ClusterDescription.findServerIncompatiblyNewerThanDriver()
Return a server in the cluster that is incompatibly newer than the driver.
|
ServerDescription |
ClusterDescription.findServerIncompatiblyOlderThanDriver()
Return a server in the cluster that is incompatibly older than the driver.
|
ServerDescription |
ClusterDescription.getByServerAddress(ServerAddress serverAddress)
Deprecated.
Replace with a filter on ServerDescription in the caller
|
ServerDescription |
Server.getDescription()
Gets the description of this server.
|
Modifier and Type | Method and Description |
---|---|
Set<ServerDescription> |
ClusterDescription.getAll()
Deprecated.
Use
ClusterDescription.getServerDescriptions() instead |
List<ServerDescription> |
ClusterDescription.getAny()
Deprecated.
Replace with a filter on ServerDescription in the caller
|
List<ServerDescription> |
ClusterDescription.getAnyPrimaryOrSecondary()
Deprecated.
Replace with a filter on ServerDescription in the caller
|
List<ServerDescription> |
ClusterDescription.getAnyPrimaryOrSecondary(TagSet tagSet)
Deprecated.
Replace with a filter on ServerDescription in the caller
|
List<ServerDescription> |
ClusterDescription.getPrimaries()
Deprecated.
Replace with a filter on ServerDescription in the caller
|
List<ServerDescription> |
ClusterDescription.getSecondaries()
Deprecated.
Replace with a filter on ServerDescription in the caller
|
List<ServerDescription> |
ClusterDescription.getSecondaries(TagSet tagSet)
Deprecated.
Replace with a filter on ServerDescription in the caller
|
List<ServerDescription> |
ClusterDescription.getServerDescriptions()
Returns an unmodifiable list of the server descriptions in this cluster description.
|
Constructor and Description |
---|
ClusterDescription(ClusterConnectionMode connectionMode,
ClusterType type,
List<ServerDescription> serverDescriptions)
Creates a new ClusterDescription.
|
ClusterDescription(ClusterConnectionMode connectionMode,
ClusterType type,
List<ServerDescription> serverDescriptions,
ClusterSettings clusterSettings,
ServerSettings serverSettings)
Creates a new ClusterDescription.
|
Modifier and Type | Method and Description |
---|---|
ServerDescription |
ServerDescriptionChangedEvent.getNewDescription()
Gets the new server description.
|
ServerDescription |
ServerDescriptionChangedEvent.getPreviousDescription()
Gets the previous server description.
|
Constructor and Description |
---|
ServerDescriptionChangedEvent(ServerId serverId,
ServerDescription newDescription,
ServerDescription previousDescription)
Construct an instance.
|
Modifier and Type | Method and Description |
---|---|
List<ServerDescription> |
PrimaryServerSelector.select(ClusterDescription clusterDescription)
Deprecated.
|
List<ServerDescription> |
WritableServerSelector.select(ClusterDescription clusterDescription) |
List<ServerDescription> |
CompositeServerSelector.select(ClusterDescription clusterDescription) |
List<ServerDescription> |
ServerSelector.select(ClusterDescription clusterDescription)
Select a list of server descriptions from the given cluster description according to some criteria.
|
List<ServerDescription> |
ServerAddressSelector.select(ClusterDescription clusterDescription) |
List<ServerDescription> |
ReadPreferenceServerSelector.select(ClusterDescription clusterDescription) |
List<ServerDescription> |
LatencyMinimizingServerSelector.select(ClusterDescription clusterDescription) |
Copyright © 2018. All rights reserved.