| Package | Description |
|---|---|
| com.mongodb |
Main package with core files.
|
| Modifier and Type | Field and Description |
|---|---|
protected CommandResult |
AggregationOutput._commandResult
Deprecated.
Please use
AggregationOutput.getCommandResult() instead. |
(package private) CommandResult |
MapReduceOutput._commandResult |
private CommandResult |
WriteResult._lastErrorResult |
private CommandResult |
DB.authenticationTestCommandResult |
private CommandResult |
MongoCommandException.commandResult |
private CommandResult |
WriteConcernException.commandResult |
(package private) CommandResult |
DB.CommandResultPair.result |
| Modifier and Type | Method and Description |
|---|---|
CommandResult |
DBPort.SaslAuthenticator.authenticate() |
(package private) CommandResult |
DBPort.X509Authenticator.authenticate() |
CommandResult |
DBPort.NativeAuthenticator.authenticate() |
(package private) abstract CommandResult |
DBPort.Authenticator.authenticate() |
CommandResult |
DBConnector.authenticate(MongoCredential credentials)
Deprecated.
Authenticate using the given credentials.
|
CommandResult |
DBTCPConnector.authenticate(MongoCredential credentials)
Deprecated.
|
(package private) CommandResult |
DBPort.authenticate(Mongo mongo,
MongoCredential credentials)
Deprecated.
|
CommandResult |
DB.authenticateCommand(java.lang.String username,
char[] password)
Deprecated.
Please use
MongoClient(java.util.List, java.util.List) to create a client, which
will authenticate all connections to server |
CommandResult |
DB.command(DBObject cmd)
Executes a database command.
|
CommandResult |
DB.command(DBObject cmd,
DBEncoder encoder)
Executes a database command.
|
CommandResult |
DB.command(DBObject cmd,
int options)
Deprecated.
Use
DB.command(DBObject, ReadPreference) instead. This method will be removed in 3.0. |
CommandResult |
DB.command(DBObject cmd,
int options,
DBEncoder encoder)
Deprecated.
Use
DB.command(DBObject, ReadPreference, DBEncoder) instead. This method will be removed in 3.0. |
(package private) CommandResult |
DBCollection.command(DBObject cmd,
int options,
ReadPreference readPrefs) |
CommandResult |
DB.command(DBObject cmd,
int options,
ReadPreference readPreference)
Deprecated.
Use
DB.command(DBObject, ReadPreference) instead. This method will be removed in 3.0. |
CommandResult |
DB.command(DBObject cmd,
int options,
ReadPreference readPreference,
DBEncoder encoder)
Deprecated.
Use
DB.command(DBObject, ReadPreference, DBEncoder) instead. This method will be removed in 3.0. |
CommandResult |
DB.command(DBObject cmd,
ReadPreference readPreference)
Executes the command against the database with the given read preference.
|
CommandResult |
DB.command(DBObject cmd,
ReadPreference readPreference,
DBEncoder encoder)
Executes a database command with the selected readPreference, and encodes the command using the given encoder.
|
CommandResult |
DB.command(java.lang.String cmd)
Executes a database command.
|
CommandResult |
DB.command(java.lang.String cmd,
int options)
Deprecated.
Use
DB.command(String, ReadPreference) instead. This method will be removed in 3.0. |
CommandResult |
DB.command(java.lang.String cmd,
ReadPreference readPreference)
Executes a database command.
|
private CommandResult |
DBPort.convertToCommandResult(DBObject cmd,
Response res)
Deprecated.
|
(package private) CommandResult |
DBApiLayer.doAuthenticate(MongoCredential credentials)
Deprecated.
|
(package private) abstract CommandResult |
DB.doAuthenticate(MongoCredential credentials) |
CommandResult |
DB.doEval(java.lang.String code,
java.lang.Object... args)
Evaluates JavaScript functions on the database server.
|
CommandResult |
DBCollection.explainAggregate(java.util.List<DBObject> pipeline,
AggregationOptions options)
Return the explain plan for the aggregation pipeline.
|
CommandResult |
Mongo.fsync(boolean async)
Forces the master server to fsync the RAM data to disk This is done automatically by the server at intervals, but can be forced for
better reliability.
|
CommandResult |
Mongo.fsyncAndLock()
Forces the master server to fsync the RAM data to disk, then lock all writes.
|
CommandResult |
WriteResult.getCachedLastError()
Deprecated.
Use the appropriate
WriteConcern and rely on the write operation to throw an exception on failure. For
successful writes, use the helper methods to retrieve specific values from the write response. |
CommandResult |
CommandFailureException.getCommandResult()
Deprecated.
|
CommandResult |
AggregationOutput.getCommandResult()
Deprecated.
there is no replacement for this method
|
(package private) CommandResult |
MongoCommandException.getCommandResult() |
CommandResult |
WriteConcernException.getCommandResult()
Deprecated.
|
CommandResult |
MapReduceOutput.getCommandResult()
Deprecated.
It is not recommended to access the command result returned by the server as the format can change between releases. This
has been replaced with a series of specific getters for the values on the CommandResult (getCollectionName, getDatabaseName,
getDuration, getEmitCount, getOutputCount, getInputCount). The method
results() will continue to return an Iterable<DBObjects>, that should be used to obtain the results of the map-reduce. This method will be removed in 3.0. |
CommandResult |
WriteResult.getLastError()
Deprecated.
Use the appropriate
WriteConcern and allow the write operation to throw an exception on failure. For
successful writes, use the helper methods to retrieve specific values from the write response. |
CommandResult |
DB.getLastError()
Deprecated.
The getlasterror command will not be supported in future versions of MongoDB. Use acknowledged writes instead.
|
(package private) CommandResult |
DBPort.getLastError(DB db,
WriteConcern concern)
Deprecated.
|
CommandResult |
DB.getLastError(int w,
int wtimeout,
boolean fsync)
Deprecated.
The getlasterror command will not be supported in future versions of MongoDB. Use acknowledged writes instead.
|
CommandResult |
WriteResult.getLastError(WriteConcern concern)
Deprecated.
Use the appropriate
WriteConcern and rely on the write operation to throw an exception on failure. For
successful writes, use the helper methods to retrieve specific values from the write response. |
CommandResult |
DB.getLastError(WriteConcern concern)
Deprecated.
The getlasterror command will not be supported in future versions of MongoDB. Use acknowledged writes instead.
|
CommandResult |
DB.getPreviousError()
Deprecated.
The getlasterror command will not be supported in future versions of MongoDB. Use acknowledged writes instead.
|
CommandResult |
DBCollection.getStats()
The collStats command returns a variety of storage statistics for a given collection
|
CommandResult |
DB.getStats()
Helper method for calling a 'dbStats' command.
|
private CommandResult |
DBCollectionImpl.receiveWriteCommandMessage(DBPort port) |
(package private) CommandResult |
DBPort.runCommand(DB db,
DBObject cmd)
Deprecated.
|
(package private) CommandResult |
DBPort.runCommand(DB db,
DBObject cmd,
int maxBsonObjectSize)
Deprecated.
|
(package private) CommandResult |
DBPort.runCommand(DB db,
DBObject cmd,
ReadPreference readPreference,
int maxBsonObjectSize)
Deprecated.
|
private CommandResult |
DBPort.SaslAuthenticator.sendSaslContinue(int conversationId,
byte[] outToken) |
private CommandResult |
DBPort.SaslAuthenticator.sendSaslStart(byte[] outToken) |
(package private) CommandResult |
DBPort.tryGetLastError(DB db,
long last,
WriteConcern concern)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
DBCollectionImpl.addBulkWriteResultToCommandResult(BulkWriteResult bulkWriteResult,
WriteRequest.Type type,
CommandResult commandResult) |
(package private) static ServerDescription |
ServerMonitor.createDescription(CommandResult commandResult,
ServerVersion serverVersion,
long averageLatencyNanos) |
(package private) static BulkWriteException |
WriteCommandResultHelper.getBulkWriteException(WriteRequest.Type type,
CommandResult commandResult) |
(package private) static BulkWriteResult |
WriteCommandResultHelper.getBulkWriteResult(WriteRequest.Type type,
CommandResult commandResult) |
private static int |
WriteCommandResultHelper.getCount(CommandResult commandResult) |
private static java.lang.Integer |
WriteCommandResultHelper.getModifiedCount(WriteRequest.Type type,
CommandResult commandResult) |
(package private) static ServerType |
ServerMonitor.getServerType(CommandResult isMasterResult) |
private static java.util.List<BulkWriteUpsert> |
WriteCommandResultHelper.getUpsertedItems(CommandResult commandResult) |
(package private) static ServerVersion |
DBPort.getVersion(CommandResult buildInfoResult)
Deprecated.
|
private WriteConcernError |
DBCollectionImpl.Run.RunExecutor.getWriteConcernError(CommandResult commandResult) |
private static WriteConcernError |
WriteCommandResultHelper.getWriteConcernError(CommandResult commandResult) |
private java.lang.String |
DBCollectionImpl.Run.RunExecutor.getWriteConcernErrorMessage(CommandResult commandResult) |
private static java.util.List<BulkWriteError> |
WriteCommandResultHelper.getWriteErrors(CommandResult commandResult) |
(package private) static boolean |
WriteCommandResultHelper.hasError(CommandResult commandResult) |
private boolean |
DBCollectionImpl.Run.RunExecutor.isWriteConcernError(CommandResult commandResult) |
| Constructor and Description |
|---|
AggregationOutput(DBObject command,
CommandResult commandResult)
Deprecated.
there is no replacement for this constructor
|
CommandFailureException(CommandResult commandResult)
Deprecated.
for internal use only
|
CommandResultPair(CommandResult result) |
DuplicateKey(CommandResult commandResult)
Deprecated.
|
DuplicateKeyException(CommandResult commandResult)
Construct a new instance with the CommandResult from getlasterror command
|
MapReduceOutput(DBCollection from,
DBObject cmd,
CommandResult raw)
Deprecated.
In the 3.0 version of the driver, this will be constructed only by the driver, and will therefore not have a public
constructor.
|
MongoCommandException(CommandResult commandResult) |
WriteConcernException(CommandResult commandResult)
Deprecated.
for internal use only, this constructor will be removed in the next major release
|
WriteConcernException(int code,
CommandResult commandResult) |
WriteResult(CommandResult o,
WriteConcern concern) |