岚天逸见

随笔分类 -  thrift

使用gcc-13.1.0编译安装thrift-0.18.1
摘要:执行 configure 生成 Makefile,排除掉不需要的语言支持和测试等: ```bash ./configure --prefix=/usr/local/thrift-0.18.1 --with-boost=/usr/local/boost --with-libevent=/usr/loc 阅读全文

posted @ 2023-07-25 17:07 岚天逸见 阅读(54) 评论(0) 推荐(0) 编辑

编译 thrift-0.14.2 的 C++ 版本
摘要:编译命令: ./configure --prefix=/usr/local/thrift-0.14.2 --with-cpp=yes --with-php=no --with-python=no --with-qt5=no --with-c_glib=no --with-java=no --with 阅读全文

posted @ 2021-09-05 09:54 岚天逸见 阅读(235) 评论(0) 推荐(0) 编辑

C++ Thrift服务端记录调用者IP和被调接口方法
摘要:Apache开源的Thrift(http://thrift.apache.org)有着广泛的使用,有时候需要知道谁调用了指定的函数,比如在下线一起老的接口之前,需要确保对这些老接口的访问已全部迁移到新口。Thrift提供了支持,在《Thrift结构分析及增加取客户端IP功能实现》一文中已做过介绍,但 阅读全文

posted @ 2019-04-17 17:17 岚天逸见 阅读(997) 评论(0) 推荐(0) 编辑

Apache Thrift的C++多线程编程定式
摘要:Facebook贡献给Apache的开源RPC组件Thrift有着广泛的应用,C++中使用Thrift也十分普遍,但由于Thrift的Handler会被多个线程调用,因而多线程中应用并不直接的友好,利用C++的“thread_local”特性或GCC的“__thread”特性可化简这一问题。 看具体 阅读全文

posted @ 2019-03-18 19:22 岚天逸见 阅读(732) 评论(0) 推荐(0) 编辑

java thrift返回List异常
摘要:对于下段代码:public List hmget(String key, List fields) throws org.apache.thrift.TException{ JedisCluster jedis_cluster = RedisClusterPro... 阅读全文

posted @ 2016-04-15 15:28 岚天逸见 阅读(768) 评论(0) 推荐(0) 编辑

Thrift线程和状态机分析
摘要:目录目录 11. 工作线程和IO线程 12. TNonblockingServer::TConnection::transition() 23. RPC函数被调用过程 34. 管道和任务队列 45. 对象间关系 56. 相关代码摘要 6 1. 工作线程和IO线程启动T... 阅读全文

posted @ 2015-09-08 21:59 岚天逸见 阅读(782) 评论(0) 推荐(0) 编辑

Thrift编译错误('::malloc' has not been declared)
摘要:问题版本:0.9.0make[4]: Entering directory `/tmp/X/thrift-0.9.0/lib/cpp'/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG... 阅读全文

posted @ 2015-08-21 19:00 岚天逸见 阅读(1038) 评论(0) 推荐(0) 编辑

Thrift辅助类,用于简化Thrift编程
摘要:CThriftServerHelper用于服务端,CThriftClientHelper用于客户端。IDL定义:service PackageManagerService{}服务端使用示例:CThriftServerHelper _thrift_server_help... 阅读全文

posted @ 2014-05-02 17:01 岚天逸见 阅读(222) 评论(0) 推荐(0) 编辑

导航

统计信息

点击右上角即可分享
微信分享提示