summary |
shortlog | log |
commit |
commitdiff |
review |
tree
first ⋅ prev ⋅ next
Mark Slee [Wed, 20 Sep 2006 02:41:24 +0000 (02:41 +0000)]
Fix typo, missing underscore in thrift compiler variable
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664800
13f79535-47bb-0310-9956-
ffa450edef68
Mark Slee [Wed, 20 Sep 2006 01:56:10 +0000 (01:56 +0000)]
Change run() to serve() in all Thrift server interfaces
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664799
13f79535-47bb-0310-9956-
ffa450edef68
Mark Slee [Tue, 19 Sep 2006 22:20:18 +0000 (22:20 +0000)]
Use GNU Net implementation of htnoll and ntohll
Reviewed By: shire
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664798
13f79535-47bb-0310-9956-
ffa450edef68
Mark Slee [Tue, 12 Sep 2006 00:46:08 +0000 (00:46 +0000)]
Thrift: Rename run() to serve() in java interfaces
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664797
13f79535-47bb-0310-9956-
ffa450edef68
Mark Slee [Fri, 8 Sep 2006 03:51:34 +0000 (03:51 +0000)]
Thrift: Rename chunked to framed transports
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664796
13f79535-47bb-0310-9956-
ffa450edef68
Mark Slee [Fri, 8 Sep 2006 03:41:50 +0000 (03:41 +0000)]
Thrift PHP TSocketPool client
Summary: Client that connects to one of an arbitrary pool of servers
Reviewed By: aditya
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664795
13f79535-47bb-0310-9956-
ffa450edef68
Mark Slee [Thu, 7 Sep 2006 21:31:12 +0000 (21:31 +0000)]
Thrift: generate Processors not Servers
Summary: Because the gen'd code isn't actually a server
Reviewed By: aditya
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664794
13f79535-47bb-0310-9956-
ffa450edef68
Mark Slee [Thu, 7 Sep 2006 21:18:27 +0000 (21:18 +0000)]
Thrift: generate python dictionaries and STL maps for server side process function lookups
Reviewed By: aditya
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664793
13f79535-47bb-0310-9956-
ffa450edef68
Mark Slee [Thu, 7 Sep 2006 01:26:35 +0000 (01:26 +0000)]
Thrift TTransportFactory model for servers
Summary: Servers need to create bufferedtransports etc. around the transports they get in a user-definable way. So use a factory pattern to allow the user to supply an object to the server that defines this behavior.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664792
13f79535-47bb-0310-9956-
ffa450edef68
Mark Slee [Wed, 6 Sep 2006 20:37:03 +0000 (20:37 +0000)]
Thrift multithreaded Java server
Summary: Ported the Pillar multithreaded Java server to Thrift
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664791
13f79535-47bb-0310-9956-
ffa450edef68
Aditya Agarwal [Wed, 6 Sep 2006 04:19:47 +0000 (04:19 +0000)]
-- search per-user lib dir first
Summary:
-- this should fix the library mismatch issue..
From the gcc linking guide:
LIBRARY_PATH
The value of LIBRARY_PATH is a colon-separated list of directories,
much like PATH. When configured as a native compiler, GCC tries
the directories thus specified when searching for special linker
files, if it can't find them using GCC_EXEC_PREFIX. Linking using
GCC also uses these directories when searching for ordinary
libraries for the -l option (but directories specified with -L come
first).
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664790
13f79535-47bb-0310-9956-
ffa450edef68
Mark Slee [Wed, 6 Sep 2006 02:42:25 +0000 (02:42 +0000)]
Thrift: Added support for double type across all languages
Summary: Just for completeness cause I'm crazy. Let's never use these!
Notes: Also made thrift grammar support # style comments, so you can do this at the top of your files
#!/usr/local/bin/thrift --cpp
/**
* This is a thrift def file youc an invoke directly and gen code!
*/
blah
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664789
13f79535-47bb-0310-9956-
ffa450edef68
Aditya Agarwal [Wed, 6 Sep 2006 00:18:29 +0000 (00:18 +0000)]
-- more thrift Makefile changes
Reviewed By: Slee
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664788
13f79535-47bb-0310-9956-
ffa450edef68
Aditya Agarwal [Tue, 5 Sep 2006 22:49:53 +0000 (22:49 +0000)]
-- added stubs for readEnd() and writeEnd()
Summary:
-- these are hook points that thrift_logger/logfile will integrate with..
Reviewed By: McSlee
Test Plan: Generated thrift code
Notes:
-- Thrift logfiles are soon coming to a netapp near you!
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664787
13f79535-47bb-0310-9956-
ffa450edef68
Aditya Agarwal [Tue, 5 Sep 2006 22:38:13 +0000 (22:38 +0000)]
-- generalize Makefile
Summary:
-- dont use /usr/local as the thrift directory now that multiple ppl are developing on dev007
Reviewed By: McSlee
Test Plan: Tested by making and cleaning
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664786
13f79535-47bb-0310-9956-
ffa450edef68
Mark Slee [Tue, 5 Sep 2006 22:09:57 +0000 (22:09 +0000)]
Thrift: Change Java/C++ server generation
Summary: Servers shouldn't implement iface directly, instead should contain an iface object
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664785
13f79535-47bb-0310-9956-
ffa450edef68
Mark Slee [Tue, 5 Sep 2006 21:05:31 +0000 (21:05 +0000)]
Thrift: standardize coding style
Summary: Standardize indentation, spacing, #defines etc.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664784
13f79535-47bb-0310-9956-
ffa450edef68
Mark Slee [Tue, 5 Sep 2006 17:34:52 +0000 (17:34 +0000)]
Thrift Python server code generation
Summary: Yep, it's up and running. We now have full client/server support in all of C++ Java PHP and Python. Well, not quite... there's no PHP server, but honestly who wants one? Actually, if we do want one the framework will support writing is as a PHP file that can be served in apache like a web service (i.e. restserver.php would be thriftserver.php). But now that's rambling and nothing to do with this commit.
Notes: cheever, let's chat about porting your multithreaded Pillar Python server over to Thrift
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664783
13f79535-47bb-0310-9956-
ffa450edef68
Mark Slee [Tue, 5 Sep 2006 00:14:21 +0000 (00:14 +0000)]
Add multiserver generation to C++ Thrift
Summary: Autogen server that can encapsulates multiple server instances
Reviewed By: aditya
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664782
13f79535-47bb-0310-9956-
ffa450edef68
Mark Slee [Mon, 4 Sep 2006 00:20:24 +0000 (00:20 +0000)]
Thrift, Make sure gen'd code initializes empty containers in php / python
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664781
13f79535-47bb-0310-9956-
ffa450edef68
Mark Slee [Mon, 4 Sep 2006 00:06:47 +0000 (00:06 +0000)]
Ooops, forgot to svn add the new code gen files
Summary: Python generator
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664780
13f79535-47bb-0310-9956-
ffa450edef68
Mark Slee [Mon, 4 Sep 2006 00:04:39 +0000 (00:04 +0000)]
Thrift and Python: Made to be together
Summary: Python client code generation for Thrift... HOTNESS!
Notes: Servers and asynchronous clients are coming soon...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664779
13f79535-47bb-0310-9956-
ffa450edef68
Mark Slee [Sun, 3 Sep 2006 21:13:07 +0000 (21:13 +0000)]
Implementation of the basic Thrift stack in Python
Summary: Framework, install script, base classes, TSocket, TBinaryProtocol
Notes: Code-gen is coming around the bend...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664778
13f79535-47bb-0310-9956-
ffa450edef68
Mark Slee [Sat, 2 Sep 2006 23:56:49 +0000 (23:56 +0000)]
Thrift C++ code generation improvements
Summary: Generate classes instead of structs, and put read/write methods inside the class definition. Separate services into uniquely generated files. Separate types header file from types implementation file (read/write methods)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664777
13f79535-47bb-0310-9956-
ffa450edef68
Mark Slee [Sat, 2 Sep 2006 21:59:28 +0000 (21:59 +0000)]
More Thfirt code-gen improvements
Summary: Move read/write struct methods into PHP class definition, make struct read non-static in Java
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664776
13f79535-47bb-0310-9956-
ffa450edef68
Mark Slee [Sat, 2 Sep 2006 04:17:07 +0000 (04:17 +0000)]
Thrift generation for Java
Summary: Java works, benchmark roundtrip at around 3ms, so right in between C++ and PHP
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664775
13f79535-47bb-0310-9956-
ffa450edef68
Mark Slee [Fri, 1 Sep 2006 22:20:32 +0000 (22:20 +0000)]
Point Thrift bootrapping code to compiler/py instead of compiler
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664774
13f79535-47bb-0310-9956-
ffa450edef68
Mark Slee [Fri, 1 Sep 2006 22:19:06 +0000 (22:19 +0000)]
Thrift test improvements, tests for both inline and normal PHP code gen
Summary: So you can A/B test and see 6ms vs. 4ms response time :)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664773
13f79535-47bb-0310-9956-
ffa450edef68
Mark Slee [Fri, 1 Sep 2006 22:18:16 +0000 (22:18 +0000)]
Thrift library updates, remove unsigned types
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664772
13f79535-47bb-0310-9956-
ffa450edef68
Mark Slee [Fri, 1 Sep 2006 22:17:45 +0000 (22:17 +0000)]
Thrift compiler improvements, two modes for PHP
Summary: Complete PHP generator and CPP generator to new formats, and offer PHP generator that generates inline code free of any TProtocol abstraction
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664771
13f79535-47bb-0310-9956-
ffa450edef68
Mark Slee [Wed, 30 Aug 2006 17:23:52 +0000 (17:23 +0000)]
Move Thrift StressTest code into test top-level folder
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664770
13f79535-47bb-0310-9956-
ffa450edef68
Mark Slee [Wed, 30 Aug 2006 17:09:05 +0000 (17:09 +0000)]
Make separate dirs for CPP and Python versions of Thrift compiler
Summary: Keep source files in separate dirs to avoid confusion
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664769
13f79535-47bb-0310-9956-
ffa450edef68
Marc Slemko [Thu, 24 Aug 2006 23:37:36 +0000 (23:37 +0000)]
Fixed handling of signed 64bit integers to support 32bit and 64bit architectures
Fixed a few bugs with php code generation
Initial stab at setting absolute thrift php require_once paths at configure time in order to guarantee APC caching. Needswork. It's hard to get automake to allow post-processing of installed files.
Lightly reviewed by mark slee
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664768
13f79535-47bb-0310-9956-
ffa450edef68
Marc Slemko [Wed, 23 Aug 2006 22:34:00 +0000 (22:34 +0000)]
Basic README with build instructions
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664767
13f79535-47bb-0310-9956-
ffa450edef68
Marc Slemko [Wed, 23 Aug 2006 22:03:34 +0000 (22:03 +0000)]
Uber configure.ac/Makefile.am and configure.ac/Makefile.am for lib/php and compiler
Modified TProtocol.h et al to take collection size as unsigned int. This removes need to cast STL's default size_t to signed int and is more correct, since collection sizes cannot be < 0 by definition
Moved compiler/Makefile to compiler/cpp.mk so it doesn't get trashed by automake
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664766
13f79535-47bb-0310-9956-
ffa450edef68
Marc Slemko [Wed, 23 Aug 2006 02:15:31 +0000 (02:15 +0000)]
Thrift php generator in python.
Cleaned up parser and cpp generator
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664765
13f79535-47bb-0310-9956-
ffa450edef68
Marc Slemko [Thu, 17 Aug 2006 02:59:05 +0000 (02:59 +0000)]
Print out results of stress test
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664764
13f79535-47bb-0310-9956-
ffa450edef68
Marc Slemko [Thu, 17 Aug 2006 01:23:12 +0000 (01:23 +0000)]
straggler
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664763
13f79535-47bb-0310-9956-
ffa450edef68
Marc Slemko [Thu, 17 Aug 2006 01:21:20 +0000 (01:21 +0000)]
straggler
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664762
13f79535-47bb-0310-9956-
ffa450edef68
Marc Slemko [Thu, 17 Aug 2006 01:13:44 +0000 (01:13 +0000)]
thrift.py => /usr/local/bin/thrift
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664761
13f79535-47bb-0310-9956-
ffa450edef68
Marc Slemko [Thu, 17 Aug 2006 01:12:11 +0000 (01:12 +0000)]
Python installer for thrift idl compiler
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664760
13f79535-47bb-0310-9956-
ffa450edef68
Marc Slemko [Thu, 17 Aug 2006 01:11:13 +0000 (01:11 +0000)]
Added stress test for thrift benchmarks
Modified TServer - made it a subclass of concurrency::Runnable to allow servers to be handed directly to concurreny::ThreadFactory when creating server threads.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664759
13f79535-47bb-0310-9956-
ffa450edef68
Marc Slemko [Tue, 15 Aug 2006 22:34:04 +0000 (22:34 +0000)]
Cleaned up test code for thrift exception throwing
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664758
13f79535-47bb-0310-9956-
ffa450edef68
Marc Slemko [Tue, 15 Aug 2006 21:29:39 +0000 (21:29 +0000)]
Modified C++ code-gen to create default constructors for all non-string primitives so that auto variable instances of structs aren't populated with
garbage. This matters because, given thrift's loosey-goosey argument and result lists, structs may only be sparsely filled.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664757
13f79535-47bb-0310-9956-
ffa450edef68
Marc Slemko [Tue, 15 Aug 2006 00:21:45 +0000 (00:21 +0000)]
Added namespace declaration
Added namespace declaration to thrift grammar
Modified C++ code generator to produce equivalent C++ namespace for thrift namespace if specified
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664756
13f79535-47bb-0310-9956-
ffa450edef68
Marc Slemko [Tue, 15 Aug 2006 00:21:31 +0000 (00:21 +0000)]
Added namespace declaration
Added namespace declaration to thrift grammar
Modified C++ code generator to produce equivalent C++ namespace for thrift namespace if specified
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664755
13f79535-47bb-0310-9956-
ffa450edef68
Marc Slemko [Mon, 14 Aug 2006 23:30:37 +0000 (23:30 +0000)]
You scream, I scream, We all scream for exceptions
Added exception defintions and specifiers to thrift grammar
Modified C++ code generator to to catch and serialize exceptions on the server side and unmarshall and throw them on the client side.
Modified grammar to require "," after each service function declaration to keep it consistent with struct declaration syntax
This checkin officially breaks the old parser
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664754
13f79535-47bb-0310-9956-
ffa450edef68
Marc Slemko [Sat, 12 Aug 2006 00:32:53 +0000 (00:32 +0000)]
Fixed a few typos - test client and server samples now working with new code generation
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664753
13f79535-47bb-0310-9956-
ffa450edef68
Marc Slemko [Fri, 11 Aug 2006 23:58:57 +0000 (23:58 +0000)]
Added function name to read/writeMessageBegin args
Added cpp generator for master server message processor
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664752
13f79535-47bb-0310-9956-
ffa450edef68
Marc Slemko [Fri, 11 Aug 2006 23:33:08 +0000 (23:33 +0000)]
Groundwork for exception support:
Auto generate result structs that combine return type and any thrown exceptions
Add __isset struct to all user defined and auto defined struct to mark fields that are explicilty read
Modified client and server generation code to marshal result structs
Added base facebook::thrift::Exception class
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664751
13f79535-47bb-0310-9956-
ffa450edef68
Marc Slemko [Fri, 11 Aug 2006 23:03:42 +0000 (23:03 +0000)]
Groundwork for exception support:
Auto generate result structs that combine return type and any thrown exceptions
Add __isset struct to all user defined and auto defined struct to mark fields that are explicilty read
Modified client and server generation code to marshal result structs
Added base facebook::thrift::Exception class
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664750
13f79535-47bb-0310-9956-
ffa450edef68
Marc Slemko [Fri, 11 Aug 2006 02:49:29 +0000 (02:49 +0000)]
Added read/write I16, U16 and Bool methods to TProtocol
Modified code generation to define structs and io methods for function argument lists and server process call implementations
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664749
13f79535-47bb-0310-9956-
ffa450edef68
Marc Slemko [Thu, 10 Aug 2006 20:45:55 +0000 (20:45 +0000)]
Fixed parser to ensure that map key-type and set value-type are comparable (ie primivitive or a typedef that resolves to a primitive) at parse-time
to avoid unsightly errors at stub/skel compilation time.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664748
13f79535-47bb-0310-9956-
ffa450edef68
Marc Slemko [Thu, 10 Aug 2006 03:30:18 +0000 (03:30 +0000)]
Rationalized include-directory schema
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664747
13f79535-47bb-0310-9956-
ffa450edef68
Marc Slemko [Thu, 10 Aug 2006 03:29:29 +0000 (03:29 +0000)]
Fixed serialization logic for collections containing typedefs or enums
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664746
13f79535-47bb-0310-9956-
ffa450edef68
Marc Slemko [Wed, 9 Aug 2006 23:36:18 +0000 (23:36 +0000)]
Modified cpp code generation to build read/write methods for each non-primitive type rather than inlining all serialization in client/server function handlers
Modified parser to assign negative numbers to autogenerated struct fields and function args.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664745
13f79535-47bb-0310-9956-
ffa450edef68
Marc Slemko [Wed, 9 Aug 2006 23:34:57 +0000 (23:34 +0000)]
Modified cpp code generation to build read/write methods for each non-primitive type rather than inlining all serialization in client/server function handlers
Modified parser to assign negative numbers to autogenerated struct fields and function args.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664744
13f79535-47bb-0310-9956-
ffa450edef68
Marc Slemko [Wed, 9 Aug 2006 01:20:16 +0000 (01:20 +0000)]
fixed test build
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664743
13f79535-47bb-0310-9956-
ffa450edef68
Marc Slemko [Wed, 9 Aug 2006 01:00:17 +0000 (01:00 +0000)]
python parser for thrift using ply lalr generator
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664742
13f79535-47bb-0310-9956-
ffa450edef68
Mark Slee [Wed, 9 Aug 2006 00:05:18 +0000 (00:05 +0000)]
Java Thrift libraries no longer use specially defined UInt32 etc. classes
Summary: There was really no need for these now that we are getting rid of unsigned, they should all just use the builtin int and long types
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664741
13f79535-47bb-0310-9956-
ffa450edef68
Mark Slee [Wed, 9 Aug 2006 00:03:43 +0000 (00:03 +0000)]
Thrift compiler support for inline PHP client code
Summary: Option to generate inline PHP code, as well as support for the async modifier keyword and the abstraction of function calls into a send and recv component
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664740
13f79535-47bb-0310-9956-
ffa450edef68
Marc Slemko [Fri, 4 Aug 2006 03:16:46 +0000 (03:16 +0000)]
More boosification of thrift driver, server, transport and protocol code
Modified TestServer to use thread-pool manager
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664739
13f79535-47bb-0310-9956-
ffa450edef68
Marc Slemko [Fri, 4 Aug 2006 03:16:25 +0000 (03:16 +0000)]
More boosification of thrift driver, server, transport and protocol code
Modified TestServer to use thread-pool manager
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664738
13f79535-47bb-0310-9956-
ffa450edef68
Marc Slemko [Fri, 4 Aug 2006 03:16:10 +0000 (03:16 +0000)]
More boosification of thrift driver, server, transport and protocol code
Modified TestServer to use thread-pool manager
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664737
13f79535-47bb-0310-9956-
ffa450edef68
Marc Slemko [Thu, 3 Aug 2006 19:01:37 +0000 (19:01 +0000)]
Converted concurrency classes to use boost::shared_ptr and boost::weak_ptr:
Wrapped all thrift code in facebook::thrift:: namespace
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664736
13f79535-47bb-0310-9956-
ffa450edef68
Marc Slemko [Thu, 3 Aug 2006 18:58:09 +0000 (18:58 +0000)]
Converted concurrency classes to use boost::shared_ptr and boost::weak_ptr:
Wrapped all thrift code in facebook::thrift:: namespace
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664735
13f79535-47bb-0310-9956-
ffa450edef68
Marc Slemko [Wed, 2 Aug 2006 20:01:22 +0000 (20:01 +0000)]
Added BNF describing proposed logical wire format for Thrift message streams
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664734
13f79535-47bb-0310-9956-
ffa450edef68
Marc Slemko [Tue, 25 Jul 2006 02:26:35 +0000 (02:26 +0000)]
autoconf/automake/libtool-ized thrift cpp bits:
Fixed to build on solaris.
Used clock_gettime() where available
Fixed rounding of time to ms
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664733
13f79535-47bb-0310-9956-
ffa450edef68
Marc Slemko [Fri, 21 Jul 2006 21:32:36 +0000 (21:32 +0000)]
autoconf/automake:
Fixed handling of bits/socket.h MSG_NODELAY
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664732
13f79535-47bb-0310-9956-
ffa450edef68
Marc Slemko [Fri, 21 Jul 2006 19:53:48 +0000 (19:53 +0000)]
autoconf/automake/libtool-ized thrift cpp bits:
Moved the original Makefile => Makefile.slee
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664731
13f79535-47bb-0310-9956-
ffa450edef68
Marc Slemko [Fri, 21 Jul 2006 03:53:13 +0000 (03:53 +0000)]
autoconf/automake line noise for linux/osx builds
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664730
13f79535-47bb-0310-9956-
ffa450edef68
Marc Slemko [Thu, 20 Jul 2006 21:16:27 +0000 (21:16 +0000)]
More test code added...
more bugs found
facebook::thrift::concurrency::ThreadManager::add
Fixed dispatch error that resulted in only one of N worker threads ever getting notified of work
facebook::thrift::concurrency::ThreadManager
Cleaned up addWorker/removeWorker and stop logic so that adding/removing workers doesn't wake up
all blocked workers.
facebook::thrift::concurrency::Thread
facebook::thrift::concurrency::Runnable
Fixed initialization logic so that runnable can return the thread that runs it
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664729
13f79535-47bb-0310-9956-
ffa450edef68
Marc Slemko [Thu, 20 Jul 2006 00:58:47 +0000 (00:58 +0000)]
Fixed a few problems found on linux x86_64 version
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664728
13f79535-47bb-0310-9956-
ffa450edef68
Marc Slemko [Thu, 20 Jul 2006 00:31:02 +0000 (00:31 +0000)]
Forgot this one
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664727
13f79535-47bb-0310-9956-
ffa450edef68
Marc Slemko [Thu, 20 Jul 2006 00:29:35 +0000 (00:29 +0000)]
Forgot this one
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664726
13f79535-47bb-0310-9956-
ffa450edef68
Marc Slemko [Thu, 20 Jul 2006 00:04:18 +0000 (00:04 +0000)]
Bring up of thread manager
facebook::thrift::concurrency::test.ThreadManagerTest::test00
Launch N tasks that block for time T, verify they all complete and that the thread manager cleans up properly
when it goes out of scope
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664725
13f79535-47bb-0310-9956-
ffa450edef68
Marc Slemko [Wed, 19 Jul 2006 20:02:22 +0000 (20:02 +0000)]
More bullet proofing of timer manager
facebook::thrift::concurrency::TimerManager::stop
Added proper cleanup of unprocessed tasks and shutdown of dispatcher thread to stop
facebook::thrift::concurrency::TimerManager::~TimerManager
Call stop if manager wasn't explicitly stopped
facebook::thrift::concurrency::test.TimerManagerTest
Calculate error margin for timeout expiration and verify it's within bounds
Verify manager stops properly when it goes out of scope
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664724
13f79535-47bb-0310-9956-
ffa450edef68
Marc Slemko [Wed, 19 Jul 2006 17:46:50 +0000 (17:46 +0000)]
Added thread factory test - problems in thread
Fixed stupid typo in TimerManager::start
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664723
13f79535-47bb-0310-9956-
ffa450edef68
Marc Slemko [Mon, 17 Jul 2006 23:51:05 +0000 (23:51 +0000)]
Another checkpoint of initial cut at thread pool manager for thrift and related concurrency classes.
Added TimerManager - I can't live without one after all.
Added Util - handy place for common time operations et al.
Initial test code
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664722
13f79535-47bb-0310-9956-
ffa450edef68
Marc Slemko [Sat, 15 Jul 2006 01:52:39 +0000 (01:52 +0000)]
Checkpoint of initial cut at thread pool manager for thrift and related concurrency classes.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664721
13f79535-47bb-0310-9956-
ffa450edef68
Mark Slee [Fri, 30 Jun 2006 18:28:50 +0000 (18:28 +0000)]
Thrift now works in PHP, hot stuff
Summary: End to end communication working in Thrift with PHP
Problem: It's a bit slower than pillar still. Need to find out why.
Reviewed By: aditya
Test Plan: Unit tests are in the test directory. Get lucas on the PHP case...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664720
13f79535-47bb-0310-9956-
ffa450edef68
Mark Slee [Mon, 26 Jun 2006 23:56:08 +0000 (23:56 +0000)]
Thrift: move /lib/cpp code into /lib/cpp/src
Summary: Clean separation of src and buildfiles etc. is key
Reviewed By: aditya
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664719
13f79535-47bb-0310-9956-
ffa450edef68
Mark Slee [Mon, 26 Jun 2006 23:52:22 +0000 (23:52 +0000)]
Thrift: getting rid of U32s for map/list/set/string lengths and field ids etc.
Summary: U32s are on the out. Make way for the I32.
Reviewed By: aditya
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664718
13f79535-47bb-0310-9956-
ffa450edef68
Mark Slee [Wed, 7 Jun 2006 06:57:01 +0000 (06:57 +0000)]
Adjust the Thrift compiler makefile to clean up after the obj/ folder that it builds into
Summary: I am super nitpicky, and after make clean I don't like seeing:
$ svn st
? obj/
Problem: make clean didn't remove the generated obj/ dir
Solution: Kill it!
Reviewed By: aditya
Test Plan: Do make clean in compiler directory followed by svn st. You should see nothing!
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664717
13f79535-47bb-0310-9956-
ffa450edef68
Mark Slee [Wed, 7 Jun 2006 06:53:25 +0000 (06:53 +0000)]
Thrift test code
Summary: Did I promise you this or what?! Interoperable test servers and clients in both C++ and Java that you can use to check that they all work, all perform well, and that they all actually talk to each other!
Problem: How we gon' test this Thrift bizniss?
Solution: Write some test scenarios in each language.
Reviewed By: aditya
Test Plan: This IS the test plan.
Notes: These tools are actually pretty easy to use, so long as you remember to type 'ant' in the java directory instead of 'make'.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664716
13f79535-47bb-0310-9956-
ffa450edef68
Mark Slee [Wed, 7 Jun 2006 06:51:18 +0000 (06:51 +0000)]
Java libraries for Thrift
Summary: The basic Thrift stack implemented in Java, still in need of a lot of work but fully functional.
Reviewed By: aditya
Test Plan: Unit tests are the NEXT checkin, I swear
Notes: Perf on the Java stuff actually isn't that bad, and it's far from optimized at the moment. Barely any tweaking has been done. Testing shows that a Java server with the C++ client has RPC performance within 2x of the pure C++ implementations. This is pretty sweet, since this cost will be eclipsed by the cost of whatever processing is being done on an actual server doing real work.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664715
13f79535-47bb-0310-9956-
ffa450edef68
Mark Slee [Wed, 7 Jun 2006 06:48:56 +0000 (06:48 +0000)]
Update Thrift CPP libraries to work with new generated source, change underlying buffers to use uint8_t* instead of std::string
Summary: Major overhaul to the CPP libraries.
Reviewed By: aditya
Test Plan: Again, keep an eye out for the unit tests commit
Notes: Initial perf tests show that Thrift is not only more robust than Pillar, but its implementation is actually around 10-20% faster. We can do about 10 RPC function calls with small data payloads in under 2ms. THAT IS FAST. THAT IS THRIFTY.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664714
13f79535-47bb-0310-9956-
ffa450edef68
Mark Slee [Wed, 7 Jun 2006 06:46:24 +0000 (06:46 +0000)]
Thrift compiler now compiles both native Java and C++ code
Summary: Compiles to both C++ and Java, plus a host of other cool options like command line control over which languages to output code in
Reviewed By: aditya
Test Plan: The unit test checkins are coming momentarily...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664713
13f79535-47bb-0310-9956-
ffa450edef68
Mark Slee [Tue, 30 May 2006 09:24:40 +0000 (09:24 +0000)]
Rev 2 of Thrift, the Pillar successor
Summary: End-to-end communications and serialization in C++ is working
Reviewed By: aditya
Test Plan: See the new top-level test/ folder. It vaguely resembles a unit test, though it could be more automated.
Revert Plan: Revertible
Notes: Still a LOT of optimization work to be done on the generated C++ code, which should be using dynamic memory in a number of places. Next major task is writing the PHP/Java/Python generators.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664712
13f79535-47bb-0310-9956-
ffa450edef68
Mark Slee [Wed, 24 May 2006 21:45:31 +0000 (21:45 +0000)]
Baseline commit for thrift, which is pillar v2
Reviewed By: aditya
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664711
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Sun, 11 May 2008 20:54:23 +0000 (20:54 +0000)]
Adding dummy thrift and trunk directories.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664710
13f79535-47bb-0310-9956-
ffa450edef68
Doug Cutting [Fri, 16 May 2008 20:33:47 +0000 (20:33 +0000)]
initialize thrift repo
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@657196
13f79535-47bb-0310-9956-
ffa450edef68