#include <instance.h>
Public Member Functions | |
virtual bool | call (Message &toSend, Message &response, bool assertOk=true, string *actualServer=0) |
virtual bool | callRead (Message &toSend, Message &response) |
virtual unsigned long long | count (const string &ns, const BSONObj &query=BSONObj(), int options=0, int limit=0, int skip=0) |
virtual string | getServerAddress () const |
virtual bool | isFailed () const |
virtual void | killCursor (long long cursorID) |
virtual auto_ptr< DBClientCursor > | query (const string &ns, Query query, int nToReturn=0, int nToSkip=0, const BSONObj *fieldsToReturn=0, int queryOptions=0) |
virtual void | say (Message &toSend) |
virtual void | sayPiggyBack (Message &toSend) |
virtual string | toString () |
virtual ConnectionString::ConnectionType | type () const |
"embedded" calls to the local server directly. Caller does not need to lock, that is handled within.
Definition at line 118 of file instance.h.
virtual bool mongo::DBDirectClient::call | ( | Message & | toSend, | |
Message & | response, | |||
bool | assertOk = true , |
|||
string * | actualServer = 0 | |||
) | [virtual] |
actualServer is set to the actual server where they call went if there was a choice (SlaveOk)
Implements mongo::DBConnector.
virtual bool mongo::DBDirectClient::callRead | ( | Message & | toSend, | |
Message & | response | |||
) | [inline, virtual] |
Implements mongo::DBClientBase.
Definition at line 141 of file instance.h.
virtual unsigned long long mongo::DBDirectClient::count | ( | const string & | ns, | |
const BSONObj & | query = BSONObj() , |
|||
int | options = 0 , |
|||
int | limit = 0 , |
|||
int | skip = 0 | |||
) | [virtual] |
count number of objects in collection ns that match the query criteria specified throws UserAssertion if database returns an error
Reimplemented from mongo::DBClientWithCommands.
virtual string mongo::DBDirectClient::getServerAddress | ( | ) | const [inline, virtual] |
Implements mongo::DBClientInterface.
Definition at line 129 of file instance.h.
virtual bool mongo::DBDirectClient::isFailed | ( | ) | const [inline, virtual] |
Implements mongo::DBClientBase.
Definition at line 123 of file instance.h.
virtual void mongo::DBDirectClient::killCursor | ( | long long | cursorID | ) | [virtual] |
Implements mongo::DBClientBase.
virtual auto_ptr<DBClientCursor> mongo::DBDirectClient::query | ( | const string & | ns, | |
Query | query, | |||
int | nToReturn = 0 , |
|||
int | nToSkip = 0 , |
|||
const BSONObj * | fieldsToReturn = 0 , |
|||
int | queryOptions = 0 | |||
) | [virtual] |
virtual void mongo::DBDirectClient::say | ( | Message & | toSend | ) | [virtual] |
Implements mongo::DBClientBase.
virtual void mongo::DBDirectClient::sayPiggyBack | ( | Message & | toSend | ) | [inline, virtual] |
Implements mongo::DBConnector.
Definition at line 134 of file instance.h.
virtual string mongo::DBDirectClient::toString | ( | ) | [inline, virtual] |
Implements mongo::DBClientWithCommands.
Definition at line 126 of file instance.h.
virtual ConnectionString::ConnectionType mongo::DBDirectClient::type | ( | ) | const [inline, virtual] |
Implements mongo::DBClientBase.
Definition at line 147 of file instance.h.