#include <dbclient.h>

Public Member Functions | |
| virtual bool | call (Message &toSend, Message &response, bool assertOk=true, string *actualServer=0)=0 |
| virtual void | checkResponse (const char *data, int nReturned) |
| virtual void | recv (Message &m) |
| virtual void | say (Message &toSend)=0 |
| virtual void | sayPiggyBack (Message &toSend)=0 |
| virtual | ~DBConnector () |
interface that handles communication with the db
Definition at line 330 of file dbclient.h.
| virtual mongo::DBConnector::~DBConnector | ( | ) | [inline, virtual] |
Definition at line 332 of file dbclient.h.
| virtual bool mongo::DBConnector::call | ( | Message & | toSend, | |
| Message & | response, | |||
| bool | assertOk = true, |
|||
| string * | actualServer = 0 | |||
| ) | [pure virtual] |
actualServer is set to the actual server where they call went if there was a choice (SlaveOk)
Implemented in mongo::DBClientConnection, mongo::DBClientReplicaSet, mongo::SyncClusterConnection, and mongo::DBDirectClient.
| virtual void mongo::DBConnector::checkResponse | ( | const char * | data, | |
| int | nReturned | |||
| ) | [inline, virtual] |
Reimplemented in mongo::DBClientConnection, and mongo::DBClientReplicaSet.
Definition at line 337 of file dbclient.h.
| virtual void mongo::DBConnector::recv | ( | Message & | m | ) | [inline, virtual] |
Reimplemented in mongo::DBClientConnection.
Definition at line 340 of file dbclient.h.
| virtual void mongo::DBConnector::say | ( | Message & | toSend | ) | [pure virtual] |
| virtual void mongo::DBConnector::sayPiggyBack | ( | Message & | toSend | ) | [pure virtual] |
Implemented in mongo::DBClientConnection, mongo::DBClientReplicaSet, mongo::SyncClusterConnection, and mongo::DBDirectClient.