Example usage for Java com.mongodb Mongo fields, constructors, methods, implement or subclass
The text is from its open source code.
void | close() Closes all resources associated with this instance, in particular any open network connections. |
void | dropDatabase(final String dbName) Drops the database if it exists. |
ServerAddress | getAddress() Gets the address of the current master |
String | getConnectPoint() Gets a String representation of current connection point, i.e. |
List | getDatabaseNames() Gets a list of the names of all databases on the connected server. |
DB | getDB(final String dbName) Gets a database object. |
List | getServerAddressList() Gets the list of server addresses currently seen by this client. |
void | setReadPreference(final ReadPreference readPreference) Sets the default read preference to use for reads operations executed on any DBCollection created indirectly from this instance, via a DB instance created from #getDB(String) . |
void | setWriteConcern(final WriteConcern writeConcern) Sets the default write concern to use for write operations executed on any DBCollection created indirectly from this instance, via a DB instance created from #getDB(String) . |
void | slaveOk() Makes it possible to run read queries on secondary nodes |