Package | Description |
---|---|
com.mongodb |
Main package with core files.
|
Modifier and Type | Class and Description |
---|---|
class |
DBAddress
Represents a database address, which includes the properties of ServerAddress (host and port) and adds a database name.
|
Modifier and Type | Method and Description |
---|---|
ServerAddress |
Mongo.getAddress()
Gets the address of the current master
|
ServerAddress |
DBTCPConnector.getAddress()
Deprecated.
|
ServerAddress |
ReplicaSetStatus.getMaster()
Gets the ServerAddress of the master server in this replica set.
|
ServerAddress |
WriteConcernException.getServerAddress()
Gets the address of the server that the write executed on.
|
ServerAddress |
MongoCursorNotFoundException.getServerAddress()
The server address where the cursor is.
|
ServerAddress |
MongoCommandException.getServerAddress()
Gets the address of the server that this command failed on.
|
ServerAddress |
DBPortPool.getServerAddress()
Deprecated.
|
ServerAddress |
DBCursor.getServerAddress()
Gets the Server Address of the server that data is pulled from.
|
ServerAddress |
Cursor.getServerAddress()
Gets the address of the server that data is pulled from.
|
ServerAddress |
BulkWriteException.getServerAddress()
The address of the server which performed the bulk write operation.
|
ServerAddress |
MapReduceOutput.getServerUsed()
Deprecated.
this method will be removed in the next major release
|
ServerAddress |
CommandResult.getServerUsed()
Deprecated.
there is no replacement for this method
|
ServerAddress |
AggregationOutput.getServerUsed()
Deprecated.
there is no replacement for this method
|
ServerAddress |
DBPort.serverAddress()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
List<ServerAddress> |
Mongo.getAllAddress()
Gets a list of all server addresses used when this Mongo was created
|
List<ServerAddress> |
DBTCPConnector.getAllAddress()
Deprecated.
Gets the list of seed server addresses
|
List<ServerAddress> |
Mongo.getServerAddressList()
Gets the list of server addresses currently seen by this client.
|
List<ServerAddress> |
DBTCPConnector.getServerAddressList()
Deprecated.
Gets the list of server addresses currently seen by the connector.
|
Modifier and Type | Method and Description |
---|---|
com.mongodb.Response |
DBTCPConnector.call(DB db,
DBCollection coll,
com.mongodb.OutMessage m,
ServerAddress hostNeeded,
DBDecoder decoder)
Deprecated.
|
com.mongodb.Response |
DBConnector.call(DB db,
DBCollection coll,
com.mongodb.OutMessage m,
ServerAddress hostNeeded,
DBDecoder decoder)
Deprecated.
does a read operation on the database
|
com.mongodb.Response |
DBTCPConnector.call(DB db,
DBCollection coll,
com.mongodb.OutMessage m,
ServerAddress hostNeeded,
int retries)
Deprecated.
|
com.mongodb.Response |
DBConnector.call(DB db,
DBCollection coll,
com.mongodb.OutMessage m,
ServerAddress hostNeeded,
int retries)
Deprecated.
does a read operation on the database
|
com.mongodb.Response |
DBTCPConnector.call(DB db,
DBCollection coll,
com.mongodb.OutMessage m,
ServerAddress hostNeeded,
int retries,
ReadPreference readPref,
DBDecoder decoder)
Deprecated.
|
com.mongodb.Response |
DBConnector.call(DB db,
DBCollection coll,
com.mongodb.OutMessage m,
ServerAddress hostNeeded,
int retries,
ReadPreference readPref,
DBDecoder decoder)
Deprecated.
does a read operation on the database
|
DBPortPool |
DBTCPConnector.getDBPortPool(ServerAddress addr)
Deprecated.
Gets the DBPortPool associated with a ServerAddress.
|
boolean |
ReplicaSetStatus.isMaster(ServerAddress serverAddress)
Checks to see if a given server is the primary server in this replica set.
|
WriteResult |
DBTCPConnector.say(DB db,
com.mongodb.OutMessage m,
WriteConcern concern,
ServerAddress hostNeeded)
Deprecated.
|
WriteResult |
DBConnector.say(DB db,
com.mongodb.OutMessage m,
WriteConcern concern,
ServerAddress hostNeeded)
Deprecated.
does a write operation
|
void |
DBTCPConnector.updatePortPool(ServerAddress addr)
Deprecated.
Assigns a new DBPortPool for a given ServerAddress.
|
Constructor and Description |
---|
DBPort(ServerAddress addr)
Deprecated.
creates a new DBPort
|
Mongo(ServerAddress addr)
Deprecated.
Replaced by
MongoClient.MongoClient(ServerAddress) |
Mongo(ServerAddress addr,
MongoOptions options)
Deprecated.
|
Mongo(ServerAddress left,
ServerAddress right)
Deprecated.
|
Mongo(ServerAddress left,
ServerAddress right,
MongoOptions options)
Deprecated.
Please use
MongoClient.MongoClient(java.util.List, MongoClientOptions) instead. |
MongoClient(ServerAddress addr)
Creates a Mongo instance based on a (single) mongodb node
|
MongoClient(ServerAddress addr,
List<MongoCredential> credentialsList)
Creates a Mongo instance based on a (single) mongodb node and a list of credentials
|
MongoClient(ServerAddress addr,
List<MongoCredential> credentialsList,
MongoClientOptions options)
Creates a Mongo instance based on a (single) mongo node using a given ServerAddress and default options.
|
MongoClient(ServerAddress addr,
MongoClientOptions options)
Creates a Mongo instance based on a (single) mongo node using a given ServerAddress and default options.
|
MongoException.CursorNotFound(long cursorId,
ServerAddress serverAddress)
Deprecated.
|
Constructor and Description |
---|
Mongo(List<ServerAddress> seeds)
Deprecated.
Replaced by
MongoClient.MongoClient(java.util.List) |
Mongo(List<ServerAddress> seeds,
MongoOptions options)
Deprecated.
|
MongoClient(List<ServerAddress> seeds)
Creates a Mongo based on a list of replica set members or a list of mongos.
|
MongoClient(List<ServerAddress> seeds,
List<MongoCredential> credentialsList)
Creates a Mongo based on a list of replica set members or a list of mongos.
|
MongoClient(List<ServerAddress> seeds,
List<MongoCredential> credentialsList,
MongoClientOptions options)
Creates a Mongo based on a list of replica set members or a list of mongos.
|
MongoClient(List<ServerAddress> seeds,
MongoClientOptions options)
Creates a Mongo based on a list of replica set members or a list of mongos.
|