mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-06 18:35:19 +00:00
THRIFT-294. Remove @author tags
They're gone. Don't add any new ones! git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@756307 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
afa1b47e60
commit
13083d6d52
@ -16,7 +16,6 @@ dnl "ax_javac_and_java" are set to "yes" or "no", and "JAVAC" and
|
||||
dnl "JAVA" are set to the appropriate commands.
|
||||
dnl
|
||||
dnl @category Java
|
||||
dnl @author David Reiss <dreiss@facebook.com>
|
||||
dnl @version 2009-02-09
|
||||
dnl @license AllPermissive
|
||||
dnl
|
||||
|
@ -25,7 +25,6 @@ dnl but it can be easily modified to allow it. (grep "cross").
|
||||
dnl
|
||||
dnl @category InstalledPackages
|
||||
dnl @category C
|
||||
dnl @author David Reiss <dreiss@facebook.com>
|
||||
dnl @version 2007-09-12
|
||||
dnl @license AllPermissive
|
||||
|
||||
|
@ -23,7 +23,6 @@ dnl but it can be easily modified to allow it. (grep "cross").
|
||||
dnl
|
||||
dnl @category InstalledPackages
|
||||
dnl @category C
|
||||
dnl @author David Reiss <dreiss@facebook.com>
|
||||
dnl @version 2007-09-12
|
||||
dnl @license AllPermissive
|
||||
|
||||
|
@ -7,7 +7,6 @@ dnl
|
||||
dnl These macros have poor error handling and are poorly documented.
|
||||
dnl They are intended only for internal use by the Thrift compiler.
|
||||
dnl
|
||||
dnl @author David Reiss <dreiss@facebook.com>
|
||||
dnl @version 2008-02-20
|
||||
dnl @license AllPermissive
|
||||
|
||||
|
@ -20,7 +20,6 @@ using namespace std;
|
||||
/**
|
||||
* Objective-C code generator.
|
||||
*
|
||||
* @author Andrew McGeachie <geechorama@gmail.com>, although it was
|
||||
* mostly copy/pasting/tweaking from mcslee's work.
|
||||
*/
|
||||
class t_cocoa_generator : public t_oop_generator {
|
||||
|
@ -22,7 +22,6 @@ using namespace std;
|
||||
/**
|
||||
* C++ code generator. This is legitimacy incarnate.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
class t_cpp_generator : public t_oop_generator {
|
||||
public:
|
||||
|
@ -22,7 +22,6 @@ using namespace std;
|
||||
/**
|
||||
* Erlang code generator.
|
||||
*
|
||||
* @author
|
||||
*/
|
||||
class t_erl_generator : public t_generator {
|
||||
public:
|
||||
|
@ -13,7 +13,6 @@ using namespace std;
|
||||
* program to perform the correct actions.
|
||||
*
|
||||
* @param program The thrift program to compile into C++ source
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
void t_generator::generate_program() {
|
||||
// Initialize the generator
|
||||
|
@ -18,7 +18,6 @@
|
||||
* routines for code generation and contains the top level method that
|
||||
* dispatches code generation across various components.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
class t_generator {
|
||||
public:
|
||||
|
@ -21,7 +21,6 @@ using namespace std;
|
||||
/**
|
||||
* Haskell code generator.
|
||||
*
|
||||
* @author Iain Proctor <iproctor@facebook.com>
|
||||
*/
|
||||
class t_hs_generator : public t_oop_generator {
|
||||
public:
|
||||
|
@ -21,7 +21,6 @@ using namespace std;
|
||||
/**
|
||||
* HTML code generator
|
||||
*
|
||||
* @author Dave Engberg, although it was
|
||||
* mostly copy/pasting/tweaking from mcslee's work.
|
||||
*/
|
||||
class t_html_generator : public t_generator {
|
||||
|
@ -22,7 +22,6 @@ using namespace std;
|
||||
/**
|
||||
* Java code generator.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
class t_java_generator : public t_oop_generator {
|
||||
public:
|
||||
|
@ -21,7 +21,6 @@ using namespace std;
|
||||
/**
|
||||
* OCaml code generator.
|
||||
*
|
||||
* @author Iain Proctor <iproctor@facebook.com>
|
||||
*/
|
||||
class t_ocaml_generator : public t_oop_generator {
|
||||
public:
|
||||
|
@ -21,7 +21,6 @@
|
||||
* Class with utility methods shared across common object oriented languages.
|
||||
* Specifically, most of this stuff is for C++/Java.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
class t_oop_generator : public t_generator {
|
||||
public:
|
||||
|
@ -21,7 +21,6 @@ using namespace std;
|
||||
/**
|
||||
* PERL code generator.
|
||||
*
|
||||
* @author Jake Luciani <jakers@gmail.com>
|
||||
*/
|
||||
class t_perl_generator : public t_oop_generator {
|
||||
public:
|
||||
|
@ -20,7 +20,6 @@ using namespace std;
|
||||
/**
|
||||
* PHP code generator.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
class t_php_generator : public t_oop_generator {
|
||||
public:
|
||||
|
@ -22,7 +22,6 @@ using namespace std;
|
||||
/**
|
||||
* Python code generator.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
class t_py_generator : public t_generator {
|
||||
public:
|
||||
|
@ -24,7 +24,6 @@ using namespace std;
|
||||
/**
|
||||
* Ruby code generator.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
class t_rb_generator : public t_oop_generator {
|
||||
public:
|
||||
|
@ -25,7 +25,6 @@ using namespace std;
|
||||
/**
|
||||
* Smalltalk code generator.
|
||||
*
|
||||
* @author Patrick Collison <patrick@collison.ie>
|
||||
*/
|
||||
class t_st_generator : public t_oop_generator {
|
||||
public:
|
||||
|
@ -19,7 +19,6 @@ using namespace std;
|
||||
/**
|
||||
* XSD generator, creates an XSD for the base types etc.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
class t_xsd_generator : public t_generator {
|
||||
public:
|
||||
|
@ -21,7 +21,6 @@
|
||||
* global variables such that the parser does the right thing and puts entries
|
||||
* into the right containers, etc.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -12,7 +12,6 @@
|
||||
* code for each language lives in a file by the language name under the
|
||||
* generate/ folder, and all parse structures live in parse/
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
|
||||
#include <cassert>
|
||||
|
@ -14,7 +14,6 @@
|
||||
* A thrift base type, which must be one of the defined enumerated types inside
|
||||
* this definition.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
class t_base_type : public t_type {
|
||||
public:
|
||||
|
@ -16,7 +16,6 @@
|
||||
* of the value object, since that is not determined until after parsing the
|
||||
* whole thing out.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
class t_const : public t_doc {
|
||||
public:
|
||||
|
@ -16,7 +16,6 @@
|
||||
* A const value is something parsed that could be a map, set, list, struct
|
||||
* or whatever.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
class t_const_value {
|
||||
public:
|
||||
|
@ -10,7 +10,6 @@
|
||||
/**
|
||||
* Documentation stubs
|
||||
*
|
||||
* @author Charlie Cheever <charlie@facebook.com>
|
||||
*/
|
||||
class t_doc {
|
||||
|
||||
|
@ -13,7 +13,6 @@
|
||||
/**
|
||||
* An enumerated type. A list of constant objects with a name for the type.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
class t_enum : public t_type {
|
||||
public:
|
||||
|
@ -15,7 +15,6 @@
|
||||
* symbol identifiers that may or may not have an explicit value associated
|
||||
* with them.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
class t_enum_value : public t_doc {
|
||||
public:
|
||||
|
@ -19,7 +19,6 @@ class t_struct;
|
||||
* Class to represent a field in a thrift structure. A field has a data type,
|
||||
* a symbolic name, and a numeric identifier.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
class t_field : public t_doc {
|
||||
public:
|
||||
|
@ -17,7 +17,6 @@
|
||||
* optional modifiers, and an argument list, which is implemented as a thrift
|
||||
* struct.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
class t_function : public t_doc {
|
||||
public:
|
||||
|
@ -12,7 +12,6 @@
|
||||
/**
|
||||
* A list is a lightweight container type that just wraps another data type.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
class t_list : public t_container {
|
||||
public:
|
||||
|
@ -13,7 +13,6 @@
|
||||
* A map is a lightweight container type that just wraps another two data
|
||||
* types.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
class t_map : public t_container {
|
||||
public:
|
||||
|
@ -40,7 +40,6 @@
|
||||
*
|
||||
* The program module also contains the definitions of the base types.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
class t_program : public t_doc {
|
||||
public:
|
||||
|
@ -19,7 +19,6 @@
|
||||
* used to determine code generation, but rather to resolve identifiers at
|
||||
* parse time.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
class t_scope {
|
||||
public:
|
||||
|
@ -15,7 +15,6 @@ class t_program;
|
||||
/**
|
||||
* A service consists of a set of functions.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
class t_service : public t_type {
|
||||
public:
|
||||
|
@ -12,7 +12,6 @@
|
||||
/**
|
||||
* A set is a lightweight container type that just wraps another data type.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
class t_set : public t_container {
|
||||
public:
|
||||
|
@ -20,7 +20,6 @@ class t_program;
|
||||
* A struct is a container for a set of member fields that has a name. Structs
|
||||
* are also used to implement exception types.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
class t_struct : public t_type {
|
||||
public:
|
||||
|
@ -24,7 +24,6 @@ class t_program;
|
||||
* used by the code generator to branch based upon different handling for the
|
||||
* various types.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
class t_type : public t_doc {
|
||||
public:
|
||||
|
@ -16,7 +16,6 @@
|
||||
* ignore typedefs and just use the underlying type directly, though in C++
|
||||
* the symbolic naming can be quite useful for code clarity.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
class t_typedef : public t_type {
|
||||
public:
|
||||
|
@ -10,7 +10,6 @@
|
||||
* Thrift scanner.
|
||||
*
|
||||
* Tokenizes a thrift definition file.
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
|
||||
%{
|
||||
|
@ -10,7 +10,6 @@
|
||||
*
|
||||
* This parser is used on a thrift definition file.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
|
||||
#define __STDC_LIMIT_MACROS
|
||||
|
@ -29,7 +29,6 @@ struct ReadWriteCounterMap : ReadWriteMutex,
|
||||
/**
|
||||
* Base Facebook service implementation in C++.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
class FacebookBase : virtual public FacebookServiceIf {
|
||||
protected:
|
||||
|
@ -60,7 +60,6 @@ ServiceTracker::ServiceTracker(facebook::fb303::FacebookBase *handler,
|
||||
* @param const ServiceMethod &serviceMethod A reference to the ServiceMethod
|
||||
* object instantiated at the start
|
||||
* of the service method.
|
||||
* @author Karl Voskuil
|
||||
*/
|
||||
void
|
||||
ServiceTracker::startService(const ServiceMethod &serviceMethod)
|
||||
@ -115,7 +114,6 @@ ServiceTracker::startService(const ServiceMethod &serviceMethod)
|
||||
* of the service method.
|
||||
* @return int64_t Elapsed units (see stopwatchUnit_) since ServiceMethod
|
||||
* instantiation.
|
||||
* @author Karl Voskuil
|
||||
*/
|
||||
int64_t
|
||||
ServiceTracker::stepService(const ServiceMethod &serviceMethod,
|
||||
@ -138,7 +136,6 @@ ServiceTracker::stepService(const ServiceMethod &serviceMethod,
|
||||
* @param const ServiceMethod &serviceMethod A reference to the ServiceMethod
|
||||
* object instantiated at the start
|
||||
* of the service method.
|
||||
* @author Karl Voskuil
|
||||
*/
|
||||
void
|
||||
ServiceTracker::finishService(const ServiceMethod &serviceMethod)
|
||||
@ -225,7 +222,6 @@ ServiceTracker::finishService(const ServiceMethod &serviceMethod)
|
||||
* uses of the object variables (and calls to this method) with a
|
||||
* mutex.
|
||||
*
|
||||
* @author Karl Voskuil
|
||||
*/
|
||||
void
|
||||
ServiceTracker::reportCheckpoint()
|
||||
@ -287,7 +283,6 @@ ServiceTracker::reportCheckpoint()
|
||||
* activity.
|
||||
*
|
||||
* @param shared_ptr<ThreadManager> threadManager The server's thread manager.
|
||||
* @author Karl Voskuil
|
||||
*/
|
||||
void
|
||||
ServiceTracker::setThreadManager(boost::shared_ptr<ThreadManager>
|
||||
@ -345,7 +340,6 @@ ServiceTracker::defaultLogMethod(int level, const string &message)
|
||||
* Creates a Stopwatch, which can report the time elapsed since its
|
||||
* creation.
|
||||
*
|
||||
* @author Karl Voskuil
|
||||
*/
|
||||
Stopwatch::Stopwatch()
|
||||
{
|
||||
@ -417,7 +411,6 @@ Stopwatch::elapsedUnits(Stopwatch::Unit unit, string *label) const
|
||||
* of service method parameters).
|
||||
* @param const string &signature A signature uniquely identifying the method
|
||||
* invocation (usually name plus parameters).
|
||||
* @author Karl Voskuil
|
||||
*/
|
||||
ServiceMethod::ServiceMethod(ServiceTracker *tracker,
|
||||
const string &name,
|
||||
|
@ -13,7 +13,6 @@
|
||||
* provided in the base implementation, and in other cases they simply define
|
||||
* methods that inheriting applications should implement (i.e. status report)
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
|
||||
namespace java com.facebook.fb303
|
||||
|
@ -8,7 +8,6 @@
|
||||
* http://developers.facebook.com/thrift/
|
||||
*
|
||||
* @package thrift
|
||||
* @author Aditya Agarwal <aditya@facebook.com>
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -14,7 +14,6 @@
|
||||
/**
|
||||
* Contains utility macros for debugging and logging.
|
||||
*
|
||||
* @author Aditya Agarwal
|
||||
*/
|
||||
|
||||
#ifndef HAVE_CLOCK_GETTIME
|
||||
|
@ -19,7 +19,6 @@ namespace apache { namespace thrift {
|
||||
* though the typical case is for some sort of server that either generates
|
||||
* responses to an input stream or forwards data from one pipe onto another.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
class TProcessor {
|
||||
public:
|
||||
|
@ -16,7 +16,6 @@
|
||||
* and generation of this particular representation of Thrift types.
|
||||
* (It is called local because it cannot be serialized by Thrift).
|
||||
*
|
||||
* @author David Reiss <dreiss@facebook.com>
|
||||
*/
|
||||
|
||||
namespace apache { namespace thrift { namespace reflection { namespace local {
|
||||
|
@ -26,7 +26,6 @@ namespace apache { namespace thrift { namespace concurrency {
|
||||
* thread->start();
|
||||
*
|
||||
*
|
||||
* @author mrabkin
|
||||
*/
|
||||
|
||||
class FunctionRunner : public Runnable {
|
||||
|
@ -20,7 +20,6 @@ namespace apache { namespace thrift { namespace concurrency {
|
||||
/**
|
||||
* Monitor implementation using the POSIX pthread library
|
||||
*
|
||||
* @author marc
|
||||
* @version $Id:$
|
||||
*/
|
||||
class Monitor::Impl {
|
||||
|
@ -22,7 +22,6 @@ namespace apache { namespace thrift { namespace concurrency {
|
||||
* bit constness. This allows const methods to call monitor methods without
|
||||
* needing to cast away constness or change to non-const signatures.
|
||||
*
|
||||
* @author marc
|
||||
* @version $Id:$
|
||||
*/
|
||||
class Monitor {
|
||||
|
@ -16,7 +16,6 @@ namespace apache { namespace thrift { namespace concurrency {
|
||||
/**
|
||||
* Implementation of Mutex class using POSIX mutex
|
||||
*
|
||||
* @author marc
|
||||
* @version $Id:$
|
||||
*/
|
||||
class Mutex::impl {
|
||||
@ -99,7 +98,6 @@ void Mutex::RECURSIVE_INITIALIZER(void* arg) {
|
||||
/**
|
||||
* Implementation of ReadWriteMutex class using POSIX rw lock
|
||||
*
|
||||
* @author boz
|
||||
* @version $Id:$
|
||||
*/
|
||||
class ReadWriteMutex::impl {
|
||||
|
@ -14,7 +14,6 @@ namespace apache { namespace thrift { namespace concurrency {
|
||||
/**
|
||||
* A simple mutex class
|
||||
*
|
||||
* @author marc
|
||||
* @version $Id:$
|
||||
*/
|
||||
class Mutex {
|
||||
|
@ -26,7 +26,6 @@ using boost::weak_ptr;
|
||||
/**
|
||||
* The POSIX thread class.
|
||||
*
|
||||
* @author marc
|
||||
* @version $Id:$
|
||||
*/
|
||||
class PthreadThread: public Thread {
|
||||
|
@ -16,7 +16,6 @@ namespace apache { namespace thrift { namespace concurrency {
|
||||
/**
|
||||
* A thread factory to create posix threads
|
||||
*
|
||||
* @author marc
|
||||
* @version $Id:$
|
||||
*/
|
||||
class PosixThreadFactory : public ThreadFactory {
|
||||
|
@ -17,7 +17,6 @@ class Thread;
|
||||
/**
|
||||
* Minimal runnable class. More or less analogous to java.lang.Runnable.
|
||||
*
|
||||
* @author marc
|
||||
* @version $Id:$
|
||||
*/
|
||||
class Runnable {
|
||||
|
@ -31,7 +31,6 @@ using boost::dynamic_pointer_cast;
|
||||
* it maintains statistics on number of idle threads, number of active threads,
|
||||
* task backlog, and average wait and service times.
|
||||
*
|
||||
* @author marc
|
||||
* @version $Id:$
|
||||
*/
|
||||
class ThreadManager::Impl : public ThreadManager {
|
||||
|
@ -16,7 +16,6 @@ namespace apache { namespace thrift { namespace concurrency {
|
||||
/**
|
||||
* Thread Pool Manager and related classes
|
||||
*
|
||||
* @author marc
|
||||
* @version $Id:$
|
||||
*/
|
||||
class ThreadManager;
|
||||
|
@ -22,7 +22,6 @@ typedef std::pair<task_iterator, task_iterator> task_range;
|
||||
/**
|
||||
* TimerManager class
|
||||
*
|
||||
* @author marc
|
||||
* @version $Id:$
|
||||
*/
|
||||
class TimerManager::Task : public Runnable {
|
||||
|
@ -22,7 +22,6 @@ namespace apache { namespace thrift { namespace concurrency {
|
||||
*
|
||||
* This class dispatches timer tasks when they fall due.
|
||||
*
|
||||
* @author marc
|
||||
* @version $Id:$
|
||||
*/
|
||||
class TimerManager {
|
||||
|
@ -25,7 +25,6 @@ namespace apache { namespace thrift { namespace concurrency {
|
||||
* platform dependent crap. Rather it should be inluded directly in
|
||||
* concurrency library implementation source.
|
||||
*
|
||||
* @author marc
|
||||
* @version $Id:$
|
||||
*/
|
||||
class Util {
|
||||
|
@ -22,7 +22,6 @@ using namespace apache::thrift::concurrency;
|
||||
/**
|
||||
* ThreadManagerTests class
|
||||
*
|
||||
* @author marc
|
||||
* @version $Id:$
|
||||
*/
|
||||
class ThreadFactoryTests {
|
||||
|
@ -23,7 +23,6 @@ using namespace apache::thrift::concurrency;
|
||||
/**
|
||||
* ThreadManagerTests class
|
||||
*
|
||||
* @author marc
|
||||
* @version $Id:$
|
||||
*/
|
||||
class ThreadManagerTests {
|
||||
|
@ -19,7 +19,6 @@ using namespace apache::thrift::concurrency;
|
||||
/**
|
||||
* ThreadManagerTests class
|
||||
*
|
||||
* @author marc
|
||||
* @version $Id:$
|
||||
*/
|
||||
class TimerManagerTests {
|
||||
|
@ -20,7 +20,6 @@ namespace apache { namespace thrift { namespace processor {
|
||||
* Class for peeking at the raw data that is being processed by another processor
|
||||
* and gives the derived class a chance to change behavior accordingly
|
||||
*
|
||||
* @author James Wang <jwang@facebook.com>
|
||||
*/
|
||||
class PeekProcessor : public apache::thrift::TProcessor {
|
||||
|
||||
|
@ -17,7 +17,6 @@ namespace apache { namespace thrift { namespace processor {
|
||||
/*
|
||||
* Class for keeping track of function call statistics and printing them if desired
|
||||
*
|
||||
* @author James Wang <jwang@facebook.com>
|
||||
*/
|
||||
class StatsProcessor : public apache::thrift::TProcessor {
|
||||
public:
|
||||
|
@ -17,7 +17,6 @@ namespace apache { namespace thrift { namespace protocol {
|
||||
* The default binary protocol for thrift. Writes all data in a very basic
|
||||
* binary format, essentially just spitting out the raw bytes.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
class TBinaryProtocol : public TProtocol {
|
||||
protected:
|
||||
|
@ -32,7 +32,6 @@ Complaints are not. :R
|
||||
* Protocol that prints the payload in a nice human-readable format.
|
||||
* Reading from this protocol is not supported.
|
||||
*
|
||||
* @author David Reiss <dreiss@facebook.com>
|
||||
*/
|
||||
class TDebugProtocol : public TWriteOnlyProtocol {
|
||||
private:
|
||||
|
@ -42,7 +42,6 @@ namespace apache { namespace thrift { namespace protocol {
|
||||
* We inherit so that we can can explicitly call TBPs's primitive-writing
|
||||
* methods within our versions.
|
||||
*
|
||||
* @author David Reiss <dreiss@facebook.com>
|
||||
*/
|
||||
class TDenseProtocol : public TBinaryProtocol {
|
||||
protected:
|
||||
|
@ -78,7 +78,6 @@ class TJSONContext;
|
||||
* client, this would mean that infinities get converted to not-a-number in
|
||||
* transmission. I don't know of any work-around for this issue.
|
||||
*
|
||||
* @author Chad Walters <chad@powerset.com>
|
||||
*/
|
||||
class TJSONProtocol : public TProtocol {
|
||||
public:
|
||||
|
@ -15,7 +15,6 @@ namespace apache { namespace thrift { namespace protocol {
|
||||
* Abstract class for implementing a protocol that can only be written,
|
||||
* not read.
|
||||
*
|
||||
* @author David Reiss <dreiss@facebook.com>
|
||||
*/
|
||||
class TWriteOnlyProtocol : public TProtocol {
|
||||
public:
|
||||
@ -151,7 +150,6 @@ class TWriteOnlyProtocol : public TProtocol {
|
||||
* Abstract class for implementing a protocol that can only be read,
|
||||
* not written.
|
||||
*
|
||||
* @author David Reiss <dreiss@facebook.com>
|
||||
*/
|
||||
class TReadOnlyProtocol : public TProtocol {
|
||||
public:
|
||||
|
@ -100,7 +100,6 @@ enum TMessageType {
|
||||
* when parsing an input XML stream, reading should be batched rather than
|
||||
* looking ahead character by character for a close tag).
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
class TProtocol {
|
||||
public:
|
||||
|
@ -18,7 +18,6 @@ namespace apache { namespace thrift { namespace protocol {
|
||||
* base of error handling to be used for various types of protocols, i.e.
|
||||
* pipes etc.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
class TProtocolException : public apache::thrift::TException {
|
||||
public:
|
||||
|
@ -18,7 +18,6 @@ using apache::thrift::transport::TTransport;
|
||||
* through to an enclosed protocol object, but also mirrored as write to a
|
||||
* second protocol object.
|
||||
*
|
||||
* @author David Reiss <dreiss@facebook.com>
|
||||
*/
|
||||
class TProtocolTap : public TReadOnlyProtocol {
|
||||
public:
|
||||
|
@ -35,7 +35,6 @@ class TConnection;
|
||||
* It does not use the TServerTransport framework, but rather has socket
|
||||
* operations hardcoded for use with select.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
class TNonblockingServer : public TServer {
|
||||
private:
|
||||
|
@ -65,7 +65,6 @@ class TServerEventHandler {
|
||||
/**
|
||||
* Thrift server.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
class TServer : public concurrency::Runnable {
|
||||
public:
|
||||
|
@ -20,7 +20,6 @@ using boost::shared_ptr;
|
||||
/**
|
||||
* A simple single-threaded application server. Perfect for unit tests!
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
void TSimpleServer::serve() {
|
||||
|
||||
|
@ -18,7 +18,6 @@ namespace apache { namespace thrift { namespace server {
|
||||
* that connection until it closes, and then repeating. It is a good example
|
||||
* of how to extend the TServer interface.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
class TSimpleServer : public TServer {
|
||||
public:
|
||||
|
@ -32,7 +32,6 @@ namespace apache { namespace thrift { namespace transport {
|
||||
* class. Subclasses are expected to define the "slow path" operations
|
||||
* that have to be done when the buffers are full or empty.
|
||||
*
|
||||
* @author David Reiss <dreiss@facebook.com>
|
||||
*/
|
||||
class TBufferBase : public TTransport {
|
||||
|
||||
@ -219,8 +218,6 @@ class TUnderlyingTransport : public TBufferBase {
|
||||
* and will serve future data out of a local buffer. For writes, data is
|
||||
* stored to an in memory buffer before being written out.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
* @author David Reiss <dreiss@facebook.com>
|
||||
*/
|
||||
class TBufferedTransport : public TUnderlyingTransport {
|
||||
public:
|
||||
@ -285,7 +282,6 @@ class TBufferedTransport : public TUnderlyingTransport {
|
||||
/**
|
||||
* Wraps a transport into a buffered one.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
class TBufferedTransportFactory : public TTransportFactory {
|
||||
public:
|
||||
@ -309,8 +305,6 @@ class TBufferedTransportFactory : public TTransportFactory {
|
||||
* binary chunk followed by the data payload. This allows the receiver on the
|
||||
* other end to always do fixed-length reads.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
* @author David Reiss <dreiss@facebook.com>
|
||||
*/
|
||||
class TFramedTransport : public TUnderlyingTransport {
|
||||
public:
|
||||
@ -355,7 +349,6 @@ class TFramedTransport : public TUnderlyingTransport {
|
||||
/**
|
||||
* Wraps a transport into a framed one.
|
||||
*
|
||||
* @author Dave Simpson <dave@powerset.com>
|
||||
*/
|
||||
class TFramedTransportFactory : public TTransportFactory {
|
||||
public:
|
||||
@ -381,8 +374,6 @@ class TFramedTransportFactory : public TTransportFactory {
|
||||
* The buffers are allocated using C constructs malloc,realloc, and the size
|
||||
* doubles as necessary. We've considered using scoped
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
* @author David Reiss <dreiss@facebook.com>
|
||||
*/
|
||||
class TMemoryBuffer : public TBufferBase {
|
||||
private:
|
||||
|
@ -18,7 +18,6 @@ namespace apache { namespace thrift { namespace transport {
|
||||
/**
|
||||
* Dead-simple wrapper around a file descriptor.
|
||||
*
|
||||
* @author David Reiss <dreiss@facebook.com>
|
||||
*/
|
||||
class TFDTransport : public TTransport {
|
||||
public:
|
||||
|
@ -39,7 +39,6 @@ using namespace apache::thrift::protocol;
|
||||
/**
|
||||
* Fake clock_gettime for systems like darwin
|
||||
*
|
||||
* @author Paul Querna <pquerna@apache.org>
|
||||
*/
|
||||
#define CLOCK_REALTIME 0
|
||||
static int clock_gettime(int clk_id /*ignored*/, struct timespec *tp) {
|
||||
|
@ -93,7 +93,6 @@ typedef struct readState {
|
||||
* Note: The above rules are enforced mainly for debugging its sole client TFileTransport
|
||||
* which uses the buffer in this way.
|
||||
*
|
||||
* @author James Wang <jwang@facebook.com>
|
||||
*/
|
||||
class TFileTransportBuffer {
|
||||
public:
|
||||
@ -148,7 +147,6 @@ class TFileWriterTransport : virtual public TTransport {
|
||||
* File implementation of a transport. Reads and writes are done to a
|
||||
* file on disk.
|
||||
*
|
||||
* @author Aditya Agarwal <aditya@facebook.com>
|
||||
*/
|
||||
class TFileTransport : public TFileReaderTransport,
|
||||
public TFileWriterTransport {
|
||||
|
@ -17,7 +17,6 @@ using namespace std;
|
||||
/**
|
||||
* Http client implementation.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
|
||||
// Yeah, yeah, hacky to put these here, I know.
|
||||
|
@ -18,7 +18,6 @@ namespace apache { namespace thrift { namespace transport {
|
||||
* here is a VERY basic HTTP/1.1 client which supports HTTP 100 Continue,
|
||||
* chunked transfer encoding, keepalive, etc. Tested against Apache.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
class THttpClient : public TTransport {
|
||||
public:
|
||||
|
@ -18,7 +18,6 @@ class TSocket;
|
||||
* Server socket implementation of TServerTransport. Wrapper around a unix
|
||||
* socket listen and accept calls.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
class TServerSocket : public TServerTransport {
|
||||
public:
|
||||
|
@ -17,7 +17,6 @@ namespace apache { namespace thrift { namespace transport {
|
||||
* Server transport framework. A server needs to have some facility for
|
||||
* creating base transports to read/write from.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
class TServerTransport {
|
||||
public:
|
||||
|
@ -18,7 +18,6 @@ namespace apache { namespace thrift { namespace transport { namespace test {
|
||||
* Calls to read are passed through with some probability. Otherwise,
|
||||
* the read amount is randomly reduced before being passed through.
|
||||
*
|
||||
* @author David Reiss <dreiss@facebook.com>
|
||||
*/
|
||||
class TShortReadTransport : public TTransport {
|
||||
public:
|
||||
|
@ -32,7 +32,6 @@ uint32_t g_socket_syscalls = 0;
|
||||
/**
|
||||
* TSocket implementation.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
|
||||
TSocket::TSocket(string host, int port) :
|
||||
|
@ -18,8 +18,6 @@ namespace apache { namespace thrift { namespace transport {
|
||||
/**
|
||||
* TCP Socket implementation of the TTransport interface.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
* @author Aditya Agarwal <aditya@facebook.com>
|
||||
*/
|
||||
class TSocket : public TTransport {
|
||||
/**
|
||||
|
@ -18,7 +18,6 @@ using boost::shared_ptr;
|
||||
/**
|
||||
* TSocketPoolServer implementation
|
||||
*
|
||||
* @author Akhil Wable <akhil@facebook.com>
|
||||
*/
|
||||
TSocketPoolServer::TSocketPoolServer()
|
||||
: host_(""),
|
||||
@ -40,7 +39,6 @@ TSocketPoolServer::TSocketPoolServer(const string &host, int port)
|
||||
/**
|
||||
* TSocketPool implementation.
|
||||
*
|
||||
* @author Jason Sobel <jsobel@facebook.com>
|
||||
*/
|
||||
|
||||
TSocketPool::TSocketPool() : TSocket(),
|
||||
|
@ -15,7 +15,6 @@ namespace apache { namespace thrift { namespace transport {
|
||||
/**
|
||||
* Class to hold server information for TSocketPool
|
||||
*
|
||||
* @author Akhil Wable <akhil@facebook.com>
|
||||
*/
|
||||
class TSocketPoolServer {
|
||||
|
||||
@ -49,7 +48,6 @@ class TSocketPoolServer {
|
||||
/**
|
||||
* TCP Socket implementation of the TTransport interface.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
class TSocketPool : public TSocket {
|
||||
|
||||
|
@ -18,7 +18,6 @@ namespace apache { namespace thrift { namespace transport {
|
||||
* Generic interface for a method of transporting data. A TTransport may be
|
||||
* capable of either reading or writing, but not necessarily both.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
class TTransport {
|
||||
public:
|
||||
@ -191,7 +190,6 @@ class TTransport {
|
||||
* source transport. Commonly used inside servers to make input and output
|
||||
* streams out of raw clients.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
class TTransportFactory {
|
||||
public:
|
||||
|
@ -19,7 +19,6 @@ namespace apache { namespace thrift { namespace transport {
|
||||
* base of error handling to be used for various types of transports, i.e.
|
||||
* pipes etc.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
class TTransportException : public apache::thrift::TException {
|
||||
public:
|
||||
|
@ -24,7 +24,6 @@ namespace apache { namespace thrift { namespace transport {
|
||||
* and it will let you write anything you want to it, though it won't actually
|
||||
* go anywhere.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
class TNullTransport : public TTransport {
|
||||
public:
|
||||
@ -52,7 +51,6 @@ class TNullTransport : public TTransport {
|
||||
* The underlying buffer expands to a keep a copy of the entire
|
||||
* request/response.
|
||||
*
|
||||
* @author Aditya Agarwal <aditya@facebook.com>
|
||||
*/
|
||||
class TPipedTransport : virtual public TTransport {
|
||||
public:
|
||||
@ -178,7 +176,6 @@ class TPipedTransport : virtual public TTransport {
|
||||
/**
|
||||
* Wraps a transport into a pipedTransport instance.
|
||||
*
|
||||
* @author Aditya Agarwal <aditya@facebook.com>
|
||||
*/
|
||||
class TPipedTransportFactory : public TTransportFactory {
|
||||
public:
|
||||
@ -212,7 +209,6 @@ class TPipedTransportFactory : public TTransportFactory {
|
||||
* it is a templatized class, so that clients who rely on a specific
|
||||
* TTransport can still access the original transport.
|
||||
*
|
||||
* @author James Wang <jwang@facebook.com>
|
||||
*/
|
||||
class TPipedFileReaderTransport : public TPipedTransport,
|
||||
public TFileReaderTransport {
|
||||
@ -250,7 +246,6 @@ class TPipedFileReaderTransport : public TPipedTransport,
|
||||
/**
|
||||
* Creates a TPipedFileReaderTransport from a filepath and a destination transport
|
||||
*
|
||||
* @author James Wang <jwang@facebook.com>
|
||||
*/
|
||||
class TPipedFileReaderTransportFactory : public TPipedTransportFactory {
|
||||
public:
|
||||
|
@ -55,7 +55,6 @@ class TZlibTransportException : public TTransportException {
|
||||
* TODO(dreiss): Don't do an extra copy of the compressed data if
|
||||
* the underlying transport is TBuffered or TMemory.
|
||||
*
|
||||
* @author David Reiss <dreiss@facebook.com>
|
||||
*/
|
||||
class TZlibTransport : public TTransport {
|
||||
public:
|
||||
|
@ -15,7 +15,6 @@ import org.apache.thrift.protocol.TType;
|
||||
/**
|
||||
* Application level exception
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
public class TApplicationException extends TException {
|
||||
|
||||
|
@ -11,7 +11,6 @@ import org.apache.thrift.protocol.TProtocol;
|
||||
/**
|
||||
* Generic base interface for generated Thrift objects.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
public interface TBase extends Cloneable {
|
||||
|
||||
|
@ -12,7 +12,6 @@ import java.io.ByteArrayOutputStream;
|
||||
* Class that allows access to the underlying buf without doing deep
|
||||
* copies on it.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
public class TByteArrayOutputStream extends ByteArrayOutputStream {
|
||||
public TByteArrayOutputStream(int size) {
|
||||
|
@ -17,7 +17,6 @@ import org.apache.thrift.transport.TIOStreamTransport;
|
||||
* Generic utility for easily deserializing objects from a byte array or Java
|
||||
* String.
|
||||
*
|
||||
* @author David Reiss <dreiss@facebook.com>
|
||||
*/
|
||||
public class TDeserializer {
|
||||
private final TProtocolFactory protocolFactory_;
|
||||
|
@ -9,7 +9,6 @@ package org.apache.thrift;
|
||||
/**
|
||||
* Generic exception class for Thrift.
|
||||
*
|
||||
* @author Mark Slee <mcslee@facebook.com>
|
||||
*/
|
||||
public class TException extends Exception {
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user