summaryrefslogtreecommitdiff
path: root/db/instance.h
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2009-01-07 10:08:12 -0500
committerAaron <aaron@10gen.com>2009-01-07 10:08:12 -0500
commit601be4dd4f44a1988798e3474b10dbcfa29a9e93 (patch)
tree7be9009d14b82133138a3e8f498601a4e03f9f2b /db/instance.h
parent6e9a533d67ba43a2d3d40e3e4c74f671470a660e (diff)
downloadmongo-601be4dd4f44a1988798e3474b10dbcfa29a9e93.tar.gz
recv full http request, implement simple rest post handling, refactor dbclient code
Diffstat (limited to 'db/instance.h')
-rw-r--r--db/instance.h16
1 files changed, 4 insertions, 12 deletions
diff --git a/db/instance.h b/db/instance.h
index 9006d6aad5d..e837cabe190 100644
--- a/db/instance.h
+++ b/db/instance.h
@@ -90,16 +90,8 @@ void getDatabaseNames( vector< string > &names );
// --- local client ---
-class DBDirectClient : public DBClientInterface {
- public:
-
- virtual auto_ptr<DBClientCursor> query(const char *ns, BSONObj query, int nToReturn = 0, int nToSkip = 0,
- BSONObj *fieldsToReturn = 0, int queryOptions = 0);
-
- virtual BSONObj findOne(const char *ns, BSONObj query, BSONObj *fieldsToReturn = 0, int queryOptions = 0);
-};
-
-
-class DirectConnector : public DBClientCursor::Connector {
- virtual bool send( Message &toSend, Message &response, bool assertOk=true );
+class DBDirectClient : public DBClientBase {
+ virtual string toString() { return "DBDirectClient"; }
+ virtual bool call( Message &toSend, Message &response, bool assertOk=true );
+ virtual void say( Message &toSend );
};