Update Thrift CPP libraries to work with new generated source, change underlying buffers to use uint8_t* instead of std::string
Summary: Major overhaul to the CPP libraries.
Reviewed By: aditya
Test Plan: Again, keep an eye out for the unit tests commit
Notes: Initial perf tests show that Thrift is not only more robust than Pillar, but its implementation is actually around 10-20% faster. We can do about 10 RPC function calls with small data payloads in under 2ms. THAT IS FAST. THAT IS THRIFTY.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664714 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/server/TServer.h b/lib/cpp/server/TServer.h
index 9c4cc59..0d275ba 100644
--- a/lib/cpp/server/TServer.h
+++ b/lib/cpp/server/TServer.h
@@ -1,7 +1,7 @@
#ifndef T_SERVER_H
#define T_SERVER_H
-#include "TDispatcher.h"
+#include "TProcessor.h"
class TServerOptions;
@@ -16,10 +16,10 @@
virtual void run() = 0;
protected:
- TServer(TDispatcher* dispatcher, TServerOptions* options) :
- dispatcher_(dispatcher), options_(options) {}
+ TServer(TProcessor* processor, TServerOptions* options) :
+ processor_(processor), options_(options) {}
- TDispatcher* dispatcher_;
+ TProcessor* processor_;
TServerOptions* options_;
};