Thrift: Adding StatsProcessor, PeekProcessor, TPipedFileReaderTransport, and TPipedFi...
authorJames Wang <jwang@apache.org>
Tue, 27 Mar 2007 23:17:34 +0000 (23:17 +0000)
committerJames Wang <jwang@apache.org>
Tue, 27 Mar 2007 23:17:34 +0000 (23:17 +0000)
commit3e9d177fd2a063a027262735adafc4d256748b1c
tree4920db5ee918f35189e15c6c6f8339098aa0239c
parentbe0ae5b1be0dcd1272a351bfb9c21d6466a62240
Thrift: Adding StatsProcessor, PeekProcessor, TPipedFileReaderTransport, and TPipedFileReaderTransportFactory classes
- StatsProcessor can be used to print events, or keep track of event frequency
- PeekProcessor is used to examine data in a thrift event, prior to passing it along to an underlying processor
- TPipedFileReaderTransport and its factory are used to pipe a TFileReaderTransport (which TFileProcessor requires)

Also fixed some bugs in TFileTransport - next flush time was overflowing and not always being reset

Reviewed by: aditya, mcslee

Test Plan: Tested using various thrift clients (scribe, falcon) and gdb in sandbox and on dev008.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665066 13f79535-47bb-0310-9956-ffa450edef68
lib/cpp/Makefile.am
lib/cpp/src/TProcessor.h
lib/cpp/src/processor/PeekProcessor.cpp [new file with mode: 0644]
lib/cpp/src/processor/PeekProcessor.h [new file with mode: 0644]
lib/cpp/src/processor/StatsProcessor.h [new file with mode: 0644]
lib/cpp/src/transport/TFileTransport.cpp
lib/cpp/src/transport/TFileTransport.h
lib/cpp/src/transport/TTransportUtils.cpp
lib/cpp/src/transport/TTransportUtils.h