Thrift之TProcess类体系原理及源码详细解析
2012-06-03 15:50:17 来源:WEB开发网核心提示:virtual void getStatusDetails(std::string& _return) = 0;virtual void getCounters(std::map<std::string, int64_t> & _return) = 0;virtual int64_t getCounter(
virtual void getStatusDetails(std::string& _return) = 0;
virtual void getCounters(std::map<std::string, int64_t> & _return) = 0;
virtual int64_t getCounter(const std::string& key) = 0;
virtual void setOption(const std::string& key, const std::string& value) = 0;
virtual void getOption(std::string& _return, const std::string& key) = 0;
virtual void getOptions(std::map<std::string, std::string> & _return) = 0;
virtual void getCpuProfile(std::string& _return, const int32_t profileDurationInSec) = 0;
virtual int64_t aliveSince() = 0;
virtual void reinitialize() = 0;
virtual void shutdown() = 0;
};
注意观察,除了这个类多了一个虚析构函数,其他函数就是IDL中定义的。接着定义了类
更多精彩
赞助商链接