#include <parallel.h>
Public Member Functions | |
string | getServer () const |
bool | isDone () const |
bool | join () |
bool | ok () const |
BSONObj | result () const |
Private Member Functions | |
CommandResult (const string &server, const string &db, const BSONObj &cmd, DBClientBase *conn) | |
Private Attributes | |
BSONObj | _cmd |
DBClientBase * | _conn |
string | _db |
bool | _done |
bool | _ok |
BSONObj | _res |
string | _server |
scoped_ptr< boost::thread > | _thr |
Friends | |
class | Future |
Definition at line 246 of file parallel.h.
mongo::Future::CommandResult::CommandResult | ( | const string & | server, | |
const string & | db, | |||
const BSONObj & | cmd, | |||
DBClientBase * | conn | |||
) | [private] |
string mongo::Future::CommandResult::getServer | ( | ) | const [inline] |
Definition at line 249 of file parallel.h.
bool mongo::Future::CommandResult::isDone | ( | ) | const [inline] |
Definition at line 251 of file parallel.h.
bool mongo::Future::CommandResult::join | ( | ) |
blocks until command is done returns ok()
bool mongo::Future::CommandResult::ok | ( | ) | const [inline] |
Definition at line 253 of file parallel.h.
BSONObj mongo::Future::CommandResult::result | ( | ) | const [inline] |
Definition at line 258 of file parallel.h.
friend class Future [friend] |
Definition at line 284 of file parallel.h.
BSONObj mongo::Future::CommandResult::_cmd [private] |
Definition at line 275 of file parallel.h.
DBClientBase* mongo::Future::CommandResult::_conn [private] |
Definition at line 276 of file parallel.h.
string mongo::Future::CommandResult::_db [private] |
Definition at line 274 of file parallel.h.
bool mongo::Future::CommandResult::_done [private] |
Definition at line 282 of file parallel.h.
bool mongo::Future::CommandResult::_ok [private] |
Definition at line 281 of file parallel.h.
BSONObj mongo::Future::CommandResult::_res [private] |
Definition at line 280 of file parallel.h.
string mongo::Future::CommandResult::_server [private] |
Definition at line 273 of file parallel.h.
scoped_ptr<boost::thread> mongo::Future::CommandResult::_thr [private] |
Definition at line 278 of file parallel.h.