| Package | Description |
|---|---|
| com.mongodb |
Main package with core files.
|
| com.mongodb.gridfs |
GridFS tools.
|
| Modifier and Type | Class and Description |
|---|---|
class |
MongoClient
A MongoDB client with internal connection pooling.
|
| Modifier and Type | Field and Description |
|---|---|
private Mongo |
OutMessage._mongo |
private Mongo |
DBTCPConnector._mongo
Deprecated.
|
(package private) Mongo |
DB._mongo |
private Mongo |
ServerMonitor.mongo |
private Mongo |
DBPortFactory.mongo |
private Mongo |
DefaultClusterableServerFactory.mongo |
protected Mongo |
DBPort.Authenticator.mongo |
| Modifier and Type | Field and Description |
|---|---|
private java.util.concurrent.ConcurrentMap<java.lang.String,Mongo> |
Mongo.Holder._mongos |
| Modifier and Type | Method and Description |
|---|---|
Mongo |
MongoURI.connect()
Creates a Mongo instance based on the URI.
|
Mongo |
Mongo.Holder.connect(MongoClientURI uri)
Attempts to find an existing MongoClient instance matching that URI in the holder, and returns it if exists.
|
Mongo |
Mongo.Holder.connect(MongoURI uri)
Deprecated.
Please use
Mongo.Holder.connect(MongoClientURI) instead. |
Mongo |
DB.getMongo()
Gets the Mongo instance
|
| Modifier and Type | Method and Description |
|---|---|
(package private) CommandResult |
DBPort.authenticate(Mongo mongo,
MongoCredential credentials)
Deprecated.
|
(package private) void |
DBPort.checkAuth(Mongo mongo)
Deprecated.
|
DBCollection |
MongoURI.connectCollection(Mongo mongo)
Returns the URI's Collection from a given Mongo instance
|
DB |
MongoURI.connectDB(Mongo mongo)
Returns the URI's DB object from a given Mongo instance.
|
static Cluster |
Clusters.create(java.lang.String clusterId,
ClusterSettings settings,
ServerSettings serverSettings,
ClusterListener clusterListener,
Mongo mongo) |
private QueryResultIterator.OptionalFinalizer |
QueryResultIterator.createFinalizerIfNeeded(long cursorId,
Mongo mongo) |
private void |
DBPort.ensureOpen(Mongo mongo)
Deprecated.
makes sure that a connection to the server has been opened
|
private void |
QueryResultIterator.init(int flags,
long cursorId,
int size,
java.util.Iterator<DBObject> iterator,
Mongo mongo) |
private void |
QueryResultIterator.initFromCursorDocument(DBObject cursorDocument,
Mongo mongo) |
private void |
QueryResultIterator.initFromQueryResponse(Response response,
Mongo mongo) |
(package private) static OutMessage |
OutMessage.killCursors(Mongo mongo,
int numCursors) |
| Constructor and Description |
|---|
Authenticator(Mongo mongo,
MongoCredential credential) |
DB(Mongo mongo,
java.lang.String name)
Constructs a new instance of the
DB. |
DBApiLayer(Mongo mongo,
java.lang.String name,
DBConnector connector)
Deprecated.
|
DBPort(ServerAddress addr,
Mongo mongo,
MongoOptions options)
Deprecated.
|
DBPort(ServerAddress addr,
PooledConnectionProvider pool,
Mongo mongo,
int generation)
Deprecated.
|
DBPort(ServerAddress addr,
PooledConnectionProvider pool,
Mongo mongo,
MongoOptions options,
int generation)
Deprecated.
|
DBPortFactory(Mongo mongo) |
DBTCPConnector(Mongo mongo)
Deprecated.
|
DefaultClusterableServerFactory(java.lang.String clusterId,
ServerSettings settings,
Mongo mongo) |
DefaultServer(ServerAddress serverAddress,
ServerSettings settings,
java.lang.String clusterId,
PooledConnectionProvider connectionProvider,
Mongo mongo) |
GSSAPIAuthenticator(Mongo mongo,
MongoCredential credentials) |
NativeAuthenticator(Mongo mongo,
MongoCredential credentials) |
OutMessage(DBCollection collection,
Mongo m,
OutMessage.OpCode opCode,
DBEncoder enc) |
OutMessage(DBCollection collection,
Mongo m,
OutMessage.OpCode opCode,
DBEncoder enc,
DBObject query,
int options,
ReadPreference readPref,
int maxBSONObjectSize) |
OutMessage(Mongo m,
OutMessage.OpCode opCode) |
PlainAuthenticator(Mongo mongo,
MongoCredential credentials) |
QueryResultIterator(DBObject cursorDocument,
Mongo mongo,
int batchSize,
DBDecoder decoder,
ServerAddress serverAddress) |
QueryResultIterator(java.lang.String namespace,
Mongo mongo,
Response res,
int batchSize,
int limit,
DBDecoder decoder) |
SaslAuthenticator(Mongo mongo,
MongoCredential credentials) |
ScramSha1Authenticator(Mongo mongo,
MongoCredential credential) |
ServerMonitor(ServerAddress serverAddress,
ChangeListener<ServerDescription> serverStateListener,
SocketSettings socketSettings,
ServerSettings settings,
java.lang.String clusterId,
Mongo mongo,
PooledConnectionProvider connectionProvider) |
X509Authenticator(Mongo mongo,
MongoCredential credential) |
| Modifier and Type | Field and Description |
|---|---|
private static Mongo |
CLI._mongo |
| Modifier and Type | Method and Description |
|---|---|
private static Mongo |
CLI.getMongo() |