Package | Description |
---|---|
com.mongodb |
Main package with core files.
|
Modifier and Type | Field and Description |
---|---|
protected CommandResult |
AggregationOutput._commandResult |
Modifier and Type | Method and Description |
---|---|
CommandResult |
DBTCPConnector.authenticate(MongoCredential credentials) |
CommandResult |
DBConnector.authenticate(MongoCredential credentials)
Authenticate using the given credentials.
|
CommandResult |
DB.authenticateCommand(String username,
char[] password)
Authenticates to db with the given credentials.
|
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)
Executes a database command.
|
CommandResult |
DB.command(DBObject cmd,
int options,
DBEncoder encoder)
Executes a database command.
|
CommandResult |
DB.command(DBObject cmd,
int options,
ReadPreference readPrefs)
Executes a database command.
|
CommandResult |
DB.command(DBObject cmd,
int options,
ReadPreference readPrefs,
DBEncoder encoder)
Executes a database command.
|
CommandResult |
DB.command(String cmd)
Executes a database command.
|
CommandResult |
DB.command(String cmd,
int options)
Executes a database command.
|
CommandResult |
DB.doEval(String code,
Object... args)
evaluates a function on the database.
|
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()
Gets the last result from getLastError()
|
CommandResult |
WriteConcernException.getCommandResult()
Gets the getlasterror command result document.
|
CommandResult |
CommandFailureException.getCommandResult()
Gets the getlasterror command result document.
|
CommandResult |
MapReduceOutput.getCommandResult() |
CommandResult |
AggregationOutput.getCommandResult()
returns the command result of the aggregation
|
CommandResult |
DB.getLastError()
Gets the the error (if there is one) from the previous operation on this connection.
|
CommandResult |
WriteResult.getLastError()
calls
WriteResult.getLastError(com.mongodb.WriteConcern) with concern=null |
CommandResult |
DB.getLastError(int w,
int wtimeout,
boolean fsync) |
CommandResult |
DB.getLastError(WriteConcern concern) |
CommandResult |
WriteResult.getLastError(WriteConcern concern)
This method does following:
- returns the existing CommandResult if concern is null or less strict than the concern it was obtained with
- otherwise attempts to obtain a CommandResult by calling getLastError with the concern
|
CommandResult |
DB.getPreviousError()
Returns the last error that occurred since start of database or a call to
resetError()
The return object will look like |
CommandResult |
DB.getStats()
Returns the result of "dbstats" command
|
CommandResult |
DBCollection.getStats()
gets the collections statistics ("collstats" command)
|
Constructor and Description |
---|
AggregationOutput(DBObject cmd,
CommandResult raw) |
CommandFailureException(CommandResult commandResult)
Construct a new instance with the CommandResult from a failed command
|
MapReduceOutput(DBCollection from,
DBObject cmd,
CommandResult raw) |
MongoException.DuplicateKey(CommandResult commandResult) |
WriteConcernException(CommandResult commandResult)
Construct a new instance with the CommandResult from getlasterror command
|