Connect via a com.
Connect via a com.mongodb.MongoClientURI
(com.mongodb.MongoClientURI)
Connect via a MongoClientURI
Connect via a MongoClientURI
(MongoClientURI)
Replica Set connection This works for a replica set or pair, and finds all the members (the master is used by default) Takes a MongoClientOptions object
Replica Set connection This works for a replica set or pair, and finds all the members (the master is used by default) Takes a MongoClientOptions object
(List[ServerAddress]) The servers to connect to
(List[MongoCredential]) used to authenticate all connections
(MongoClientOptions) DB Options
2.6
CredentialsList
MongoClientOptions
MongoDBAddress
ServerAddress
Replica Set connection This works for a replica set or pair, and finds all the members (the master is used by default) Takes a MongoClientOptions object
Replica Set connection This works for a replica set or pair, and finds all the members (the master is used by default) Takes a MongoClientOptions object
(List[ServerAddress]) The servers to connect to
(List[MongoCredential]) used to authenticate all connections
2.6
CredentialsList
MongoDBAddress
ServerAddress
Replica Set connection This works for a replica set or pair, and finds all the members (the master is used by default) Takes a MongoClientOptions object
Replica Set connection This works for a replica set or pair, and finds all the members (the master is used by default) Takes a MongoClientOptions object
(List[ServerAddress]) The servers to connect to
(MongoClientOptions) DB Options
MongoClientOptions
MongoDBAddress
ServerAddress
Replica Set connection This works for a replica set or pair, and finds all the members (the master is used by default)
Replica Set connection This works for a replica set or pair, and finds all the members (the master is used by default)
(List[ServerAddress]) The servers to connect to
MongoDBAddress
ServerAddress
Creates a Mongo instance based on a (single) mongo node using a given ServerAddress and options.
Creates a Mongo instance based on a (single) mongo node using a given ServerAddress and options.
(ServerAddress) the DatabaseAddress
(List[MongoCredential]) used to authenticate all connections
(MongoClientOptions) DB Options
2.6
CredentialsList
MongoClientOptions
MongoDBAddress
ServerAddress
Creates a Mongo instance based on a (single) mongodb node and a list of credentials
Creates a Mongo instance based on a (single) mongodb node and a list of credentials
(ServerAddress) the DatabaseAddress
2.6
credentialsList
MongoDBAddress
ServerAddress
Connects to a (single) mongodb node.
Connects to a (single) mongodb node.
(ServerAddress) the DatabaseAddress
(MongoClientOptions) DB Options
MongoClientOptions
MongoDBAddress
ServerAddress
Connects to a (single) mongodb node.
Connects to a (single) mongodb node.
(ServerAddress) the DatabaseAddress
MongoDBAddress
ServerAddress
Connects to a (single) mongodb node
Connects to a (single) mongodb node
(String) server to connect to
(Int) the port on which the database is running
UnknownHostException
Creates a Mongo instance based on a (single) mongodb node (default port).
Creates a Mongo instance based on a (single) mongodb node (default port).
server to connect to in format host[:port]
default query options
UnknownHostException
Connects to a (single) mongodb node (default port)
Connects to a (single) mongodb node (default port)
(String) server to connect to
UnknownHostException
Default connection method - connects to default host & port &
Default connection method - connects to default host & port
UnknownHostException
Wrapper object for MongoClient connections, providing the static methods the Java driver gives. Apply methods are called as MongoClient(<params>)
2.5