Package | Description |
---|---|
com.mongodb |
Main package with core files.
|
Modifier and Type | Class and Description |
---|---|
class |
DBAddress
Represents a database address
|
Modifier and Type | Method and Description |
---|---|
ServerAddress |
Mongo.getAddress()
Gets the address of the current master
|
ServerAddress |
DBTCPConnector.getAddress() |
ServerAddress |
ReplicaSetStatus.getMaster() |
ServerAddress |
MongoException.CursorNotFound.getServerAddress()
The server address where the cursor is.
|
ServerAddress |
DBPortPool.getServerAddress() |
ServerAddress |
DBCursor.getServerAddress()
Gets the Server Address of the server that data is pulled from.
|
ServerAddress |
MapReduceOutput.getServerUsed() |
ServerAddress |
CommandResult.getServerUsed() |
ServerAddress |
AggregationOutput.getServerUsed()
returns the address of the server used to execute the aggregation
|
ServerAddress |
DBPort.serverAddress() |
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()
Gets the list of seed server addresses
|
List<ServerAddress> |
Mongo.getServerAddressList()
Gets the list of server addresses currently seen by the connector.
|
List<ServerAddress> |
DBTCPConnector.getServerAddressList()
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) |
com.mongodb.Response |
DBConnector.call(DB db,
DBCollection coll,
com.mongodb.OutMessage m,
ServerAddress hostNeeded,
DBDecoder decoder)
does a read operation on the database
|
com.mongodb.Response |
DBTCPConnector.call(DB db,
DBCollection coll,
com.mongodb.OutMessage m,
ServerAddress hostNeeded,
int retries) |
com.mongodb.Response |
DBConnector.call(DB db,
DBCollection coll,
com.mongodb.OutMessage m,
ServerAddress hostNeeded,
int retries)
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) |
com.mongodb.Response |
DBConnector.call(DB db,
DBCollection coll,
com.mongodb.OutMessage m,
ServerAddress hostNeeded,
int retries,
ReadPreference readPref,
DBDecoder decoder)
does a read operation on the database
|
DBPortPool |
DBTCPConnector.getDBPortPool(ServerAddress addr)
Gets the DBPortPool associated with a ServerAddress.
|
boolean |
ReplicaSetStatus.isMaster(ServerAddress srv) |
WriteResult |
DBTCPConnector.say(DB db,
com.mongodb.OutMessage m,
WriteConcern concern,
ServerAddress hostNeeded) |
WriteResult |
DBConnector.say(DB db,
com.mongodb.OutMessage m,
WriteConcern concern,
ServerAddress hostNeeded)
does a write operation
|
void |
DBTCPConnector.updatePortPool(ServerAddress addr)
Assigns a new DBPortPool for a given ServerAddress.
|
Constructor and Description |
---|
DBPort(ServerAddress addr)
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.
|
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) |
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.
|