public abstract class MongoClient extends Object
| Modifier and Type | Method and Description |
|---|---|
MongoDatabase |
getDatabase(String databaseName)
Gets a
MongoDatabase instance for the given database name. |
String |
getServiceName()
Returns the service name for this client.
|
public MongoDatabase getDatabase(String databaseName)
MongoDatabase instance for the given database name.databaseName - the name of the database to retrieveRemoteMongoDatabase representing the specified databasepublic String getServiceName()