0
我計劃使用Apache Thrift來監視對本地更改的任何更改並將該數據推送到客戶端(更改後的數據)。apache節儉監視器hdfs文件
當我檢查了勤儉節約的文檔林看到多個傳輸層,但不明白我應該使用哪一個傳輸層
http://thrift-tutorial.readthedocs.io/en/latest/thrift-stack.html
Tranport Layer
The transport layer is responsible for reading from and writing to the wire. Thrift supports the following:
TSocket - Uses blocking socket I/O for transport.
TFramedTransport - Sends data in frames, where each frame is preceded by a length. This transport is required when using a non-blocking server.
TFileTransport - This transport writes to a file. While this transport is not included with the Java implementation, it should be simple enough to implement.
TMemoryTransport - Uses memory for I/O. The Java implementation uses a simple ByteArrayOutputStream internally.
TZlibTransport - Performs compression using zlib. Used in conjunction with another transport. Not available in the Java implementation.
這本書會帶來很大的變化,非常感謝。 – user1050619
你可以把我推薦給官方文檔嗎?我是 – user1050619
http://thrift.apache.org – JensG