Manipulate Network Options
Manipulate Network Options
com.mongodb.Bytes
,com.mongodb.Mongo
Gets the address of this database.
Gets the address of this database.
(ServerAddress) The address of the DB
Closes all open connections.
Closes all open connections. NOTE: This connection can't be reused after closing.
Gets the list of credentials that this client authenticates all connections with
Gets the list of credentials that this client authenticates all connections with
the list of credentials
2.6.0
if problem connecting
if problem connecting
Drops the database if it exists.
Drops the database if it exists.
(String) the name of the database to drop
if problem connecting
Gets the address of this database.
Gets the address of this database.
(ServerAddress) The address of the DB
Gets the list of credentials that this client authenticates all connections with
Gets the list of credentials that this client authenticates all connections with
the list of credentials
2.6.0
if problem connecting
Manipulate Network Options
Manipulate Network Options
com.mognodb.Bytes
,com.mongodb.Mongo
Gets the read preference for this database.
Gets the read preference for this database. Will be used as default for reads from any collection in this database. See the documentation for com.mongodb.ReadPreference for more information.
get the write concern for this database, which is used for writes to any collection in this database.
get the write concern for this database, which is used for writes to any collection in this database. See the documentation for com.mongodb.WriteConcern for more info.
http://www.thebuzzmedia.com/mongodb-single-server-data-durability-guide/
,WriteConcern
Manipulate Network Options
Manipulate Network Options
com.mognodb.Bytes
,com.mongodb.Mongo
Gets the read preference for this database.
Gets the read preference for this database. Will be used as default for reads from any collection in this database. See the documentation for com.mongodb.ReadPreference for more information.
Sets the read preference for this database.
Sets the read preference for this database. Will be used as default for reads from any collection in this database. See the documentation for com.mongodb.ReadPreference for more information.
Read Preference to use
Manipulate Network Options
Manipulate Network Options
com.mongodb.Bytes
,com.mongodb.Mongo
Sets the read preference for this database.
Sets the read preference for this database. Will be used as default for reads from any collection in this database. See the documentation for com.mongodb.ReadPreference for more information.
Read Preference to use
Set the write concern for this database.
Set the write concern for this database. Will be used for writes to any collection in this database. See the documentation for com.mongodb.WriteConcern for more info.
(WriteConcern) The write concern to use
WriteConcern
get the write concern for this database, which is used for writes to any collection in this database.
get the write concern for this database, which is used for writes to any collection in this database. See the documentation for com.mongodb.WriteConcern for more info.
http://www.thebuzzmedia.com/mongodb-single-server-data-durability-guide/
,WriteConcern
Set the write concern for this database.
Set the write concern for this database. Will be used for writes to any collection in this database. See the documentation for com.mongodb.WriteConcern for more info.
(WriteConcern) The write concern to use
http://www.thebuzzmedia.com/mongodb-single-server-data-durability-guide/
,WriteConcern
Wrapper class for the MongoClient object.