Package | Description |
---|---|
com.mongodb |
The core mongodb package
|
com.mongodb.async.client |
This packages contains classes for the new async client
|
com.mongodb.client |
This package contains classes for the new client api for MongoDatabase and MongoCollection
|
com.mongodb.connection |
Contains classes that manage connecting to MongoDB servers.
|
Modifier and Type | Method and Description |
---|---|
private static Cluster |
Mongo.createCluster(ClusterSettings clusterSettings,
java.util.List<MongoCredential> credentialsList,
MongoClientOptions options,
MongoDriverInformation mongoDriverInformation) |
private static Cluster |
Mongo.createCluster(java.util.List<ServerAddress> seedList,
java.util.List<MongoCredential> credentialsList,
MongoClientOptions options,
MongoDriverInformation mongoDriverInformation) |
private static Cluster |
Mongo.createCluster(MongoClientURI mongoURI,
MongoDriverInformation mongoDriverInformation) |
private static Cluster |
Mongo.createCluster(ServerAddress serverAddress,
java.util.List<MongoCredential> credentialsList,
MongoClientOptions options,
MongoDriverInformation mongoDriverInformation) |
Constructor and Description |
---|
Mongo(java.util.List<ServerAddress> seedList,
java.util.List<MongoCredential> credentialsList,
MongoClientOptions options,
MongoDriverInformation mongoDriverInformation) |
Mongo(MongoClientURI mongoURI,
MongoDriverInformation mongoDriverInformation) |
Mongo(ServerAddress serverAddress,
java.util.List<MongoCredential> credentialsList,
MongoClientOptions options,
MongoDriverInformation mongoDriverInformation) |
MongoClient(java.util.List<ServerAddress> seeds,
java.util.List<MongoCredential> credentialsList,
MongoClientOptions options,
MongoDriverInformation mongoDriverInformation)
|
MongoClient(java.util.List<ServerAddress> seeds,
MongoCredential credential,
MongoClientOptions options,
MongoDriverInformation mongoDriverInformation)
Creates a MongoClient
|
MongoClient(MongoClientURI uri,
MongoDriverInformation mongoDriverInformation)
Creates a Mongo described by a URI.
|
MongoClient(ServerAddress addr,
java.util.List<MongoCredential> credentialsList,
MongoClientOptions options,
MongoDriverInformation mongoDriverInformation)
|
MongoClient(ServerAddress addr,
MongoCredential credential,
MongoClientOptions options,
MongoDriverInformation mongoDriverInformation)
Creates a MongoClient to a single node using a given ServerAddress.
|
Modifier and Type | Method and Description |
---|---|
static MongoClient |
MongoClients.create(ConnectionString connectionString,
MongoDriverInformation mongoDriverInformation)
Create a new client with the given connection string.
|
static MongoClient |
MongoClients.create(MongoClientSettings settings,
MongoDriverInformation mongoDriverInformation)
Creates a new client with the given client settings.
|
(package private) static MongoClient |
NettyMongoClients.create(MongoClientSettings settings,
MongoDriverInformation mongoDriverInformation) |
private static MongoClient |
MongoClients.create(MongoClientSettings settings,
MongoDriverInformation mongoDriverInformation,
java.lang.String requestedStreamType) |
(package private) static MongoClient |
MongoClients.createMongoClient(MongoClientSettings settings,
MongoDriverInformation mongoDriverInformation,
StreamFactory streamFactory,
StreamFactory heartbeatStreamFactory,
java.io.Closeable externalResourceCloser) |
Modifier and Type | Field and Description |
---|---|
private MongoDriverInformation |
MongoDriverInformation.Builder.driverInformation |
Modifier and Type | Method and Description |
---|---|
MongoDriverInformation |
MongoDriverInformation.Builder.build() |
Modifier and Type | Method and Description |
---|---|
static MongoDriverInformation.Builder |
MongoDriverInformation.builder(MongoDriverInformation mongoDriverInformation)
Convenience method to create a Builder.
|
Constructor and Description |
---|
Builder(MongoDriverInformation driverInformation) |
Modifier and Type | Field and Description |
---|---|
private MongoDriverInformation |
DefaultClusterableServerFactory.mongoDriverInformation |
Modifier and Type | Method and Description |
---|---|
(package private) static MongoDriverInformation |
ClientMetadataHelper.getDriverInformation(MongoDriverInformation mongoDriverInformation) |
Modifier and Type | Method and Description |
---|---|
private static BsonDocument |
ClientMetadataHelper.addDriverInformation(MongoDriverInformation mongoDriverInformation,
BsonDocument document) |
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)
|
(package private) static BsonDocument |
ClientMetadataHelper.createClientMetadataDocument(java.lang.String applicationName,
MongoDriverInformation mongoDriverInformation) |
(package private) static BsonDocument |
ClientMetadataHelper.createClientMetadataDocument(java.lang.String applicationName,
MongoDriverInformation mongoDriverInformation,
BsonDocument templateDocument) |
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)
|
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,
java.util.List<MongoCompressor> compressorList)
Creates a cluster with the given settings.
|
(package private) static MongoDriverInformation |
ClientMetadataHelper.getDriverInformation(MongoDriverInformation mongoDriverInformation) |
Constructor and Description |
---|
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,
java.util.List<MongoCompressor> compressorList) |
InternalStreamConnectionFactory(StreamFactory streamFactory,
java.util.List<MongoCredential> credentialList,
java.lang.String applicationName,
MongoDriverInformation mongoDriverInformation,
java.util.List<MongoCompressor> compressorList,
CommandListener commandListener) |