Package | Description |
---|---|
com.mongodb |
The core mongodb package
|
com.mongodb.async.client |
This packages contains classes for the new async client
|
com.mongodb.connection |
Contains classes that manage connecting to MongoDB servers.
|
com.mongodb.internal.event |
Modifier and Type | Method and Description |
---|---|
private static ClusterSettings |
Mongo.getClusterSettings(java.util.List<ServerAddress> seedList,
MongoClientOptions options,
ClusterConnectionMode clusterConnectionMode) |
Modifier and Type | Method and Description |
---|---|
private static Cluster |
Mongo.createCluster(ClusterSettings clusterSettings,
java.util.List<MongoCredential> credentialsList,
MongoClientOptions options,
MongoDriverInformation mongoDriverInformation) |
Modifier and Type | Field and Description |
---|---|
private ClusterSettings |
MongoClientSettings.clusterSettings |
private ClusterSettings |
MongoClientSettings.Builder.clusterSettings |
Modifier and Type | Method and Description |
---|---|
ClusterSettings |
MongoClientSettings.getClusterSettings()
Gets the cluster settings.
|
Modifier and Type | Method and Description |
---|---|
MongoClientSettings.Builder |
MongoClientSettings.Builder.clusterSettings(ClusterSettings clusterSettings)
Sets the cluster settings.
|
Modifier and Type | Field and Description |
---|---|
private ClusterSettings |
ClusterDescription.clusterSettings |
private ClusterSettings |
DefaultClusterableServerFactory.clusterSettings |
private ClusterSettings |
BaseCluster.settings |
Modifier and Type | Method and Description |
---|---|
ClusterSettings |
ClusterSettings.Builder.build()
Build the settings from the builder.
|
ClusterSettings |
ClusterDescription.getClusterSettings()
Gets the cluster settings, which may be null if not provided.
|
private ClusterSettings |
DefaultClusterFactory.getClusterSettings(ClusterSettings settings,
ClusterListener clusterListener) |
ClusterSettings |
Cluster.getSettings()
Gets the cluster settings with which this cluster was created.
|
ClusterSettings |
BaseCluster.getSettings() |
Modifier and Type | Method and Description |
---|---|
static ClusterSettings.Builder |
ClusterSettings.builder(ClusterSettings clusterSettings)
Creates a builder instance.
|
Cluster |
ClusterFactory.create(ClusterSettings settings,
ServerSettings serverSettings,
ConnectionPoolSettings connectionPoolSettings,
StreamFactory streamFactory,
StreamFactory heartbeatStreamFactory,
java.util.List<MongoCredential> credentialList,
ClusterListener clusterListener,
ConnectionPoolListener connectionPoolListener,
ConnectionListener connectionListener)
Creates a cluster with the given settings.
|
Cluster |
DefaultClusterFactory.create(ClusterSettings settings,
ServerSettings serverSettings,
ConnectionPoolSettings connectionPoolSettings,
StreamFactory streamFactory,
StreamFactory heartbeatStreamFactory,
java.util.List<MongoCredential> credentialList,
ClusterListener clusterListener,
ConnectionPoolListener connectionPoolListener,
ConnectionListener connectionListener) |
Cluster |
DefaultClusterFactory.create(ClusterSettings settings,
ServerSettings serverSettings,
ConnectionPoolSettings connectionPoolSettings,
StreamFactory streamFactory,
StreamFactory heartbeatStreamFactory,
java.util.List<MongoCredential> credentialList,
ClusterListener clusterListener,
ConnectionPoolListener connectionPoolListener,
ConnectionListener connectionListener,
CommandListener commandListener)
|
Cluster |
DefaultClusterFactory.create(ClusterSettings settings,
ServerSettings serverSettings,
ConnectionPoolSettings connectionPoolSettings,
StreamFactory streamFactory,
StreamFactory heartbeatStreamFactory,
java.util.List<MongoCredential> credentialList,
ClusterListener clusterListener,
ConnectionPoolListener connectionPoolListener,
ConnectionListener connectionListener,
CommandListener commandListener,
java.lang.String applicationName,
MongoDriverInformation mongoDriverInformation)
|
Cluster |
DefaultClusterFactory.createCluster(ClusterSettings clusterSettings,
ServerSettings serverSettings,
ConnectionPoolSettings connectionPoolSettings,
StreamFactory streamFactory,
StreamFactory heartbeatStreamFactory,
java.util.List<MongoCredential> credentialList,
CommandListener commandListener,
java.lang.String applicationName,
MongoDriverInformation mongoDriverInformation)
Creates a cluster with the given settings.
|
private ClusterSettings |
DefaultClusterFactory.getClusterSettings(ClusterSettings settings,
ClusterListener clusterListener) |
Constructor and Description |
---|
BaseCluster(ClusterId clusterId,
ClusterSettings settings,
ClusterableServerFactory serverFactory) |
Builder(ClusterSettings clusterSettings) |
ClusterDescription(ClusterConnectionMode connectionMode,
ClusterType type,
java.util.List<ServerDescription> serverDescriptions,
ClusterSettings clusterSettings,
ServerSettings serverSettings)
Creates a new ClusterDescription.
|
DefaultClusterableServerFactory(ClusterId clusterId,
ClusterSettings clusterSettings,
ServerSettings serverSettings,
ConnectionPoolSettings connectionPoolSettings,
StreamFactory streamFactory,
StreamFactory heartbeatStreamFactory,
java.util.List<MongoCredential> credentialList,
CommandListener commandListener,
java.lang.String applicationName,
MongoDriverInformation mongoDriverInformation) |
MultiServerCluster(ClusterId clusterId,
ClusterSettings settings,
ClusterableServerFactory serverFactory) |
SingleServerCluster(ClusterId clusterId,
ClusterSettings settings,
ClusterableServerFactory serverFactory) |
Modifier and Type | Method and Description |
---|---|
static ClusterListener |
EventListenerHelper.getClusterListener(ClusterSettings clusterSettings) |