Mark Slee
6e81b3fb5c
Rest definition should not implement interface, the method signatures are different.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664873 13f79535-47bb-0310-9956-ffa450edef68
2006-11-14 23:51:27 +00:00
Mark Slee
5ea94d444b
Thrift generates a REST handler for PHP code
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664872 13f79535-47bb-0310-9956-ffa450edef68
2006-11-14 23:48:00 +00:00
Mark Slee
19e71c34b1
All thrift PHP class constructors can take an array as the constructor argument
...
Summary: It will init any field with the value in the array. Hot for converting DB rows into thrift objs.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664871 13f79535-47bb-0310-9956-ffa450edef68
2006-11-10 23:07:35 +00:00
Mark Slee
52cb2234de
I lied before, now thrift really supports single or double dashes
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664870 13f79535-47bb-0310-9956-ffa450edef68
2006-11-10 22:32:07 +00:00
Mark Slee
2329a83701
Allow single dash or double dash for thrift flags
...
Reviewed By: martin
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664869 13f79535-47bb-0310-9956-ffa450edef68
2006-11-09 00:23:30 +00:00
Martin Kraemer
32c66e1506
Thrift Include Path Specification
...
Summary:
Add support for include path specification in thrift. Using a -I <dir> option you can build a list of search paths to resolve thrift includes.
Reviewed By: mcslee
Revert Plan: revertible
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664868 13f79535-47bb-0310-9956-ffa450edef68
2006-11-09 00:06:36 +00:00
Mark Slee
ae2bc3c8d6
Do not print ; in thrift parser
...
Reviewed By: bizsys d00dz
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664867 13f79535-47bb-0310-9956-ffa450edef68
2006-11-08 23:44:59 +00:00
Mark Slee
9683f77d88
Fix TType.php problem
...
Reviewed By: martin
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664866 13f79535-47bb-0310-9956-ffa450edef68
2006-11-07 23:03:00 +00:00
Mark Slee
8d2b238697
Fix C++ skeleton code generator
...
Summary: Do not reference TBufferedTransportFactory.h
Reviewed By: yishan
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664865 13f79535-47bb-0310-9956-ffa450edef68
2006-11-06 21:40:11 +00:00
Mark Slee
207cb46af8
Make commas and/or semicolons both optional in thrift
...
Reviewed by: karl
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664864 13f79535-47bb-0310-9956-ffa450edef68
2006-11-02 18:43:12 +00:00
Mark Slee
b39dbc5891
Iterate python dictionaries with for k,v in dict.items()
...
Notes:
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664863 13f79535-47bb-0310-9956-ffa450edef68
2006-10-31 05:56:27 +00:00
Mark Slee
bc4bc0f8f4
Py inherited processor must pass handler to parent constructor
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664862 13f79535-47bb-0310-9956-ffa450edef68
2006-10-31 05:45:33 +00:00
Mark Slee
6b4783b96b
Inherited processors must call parent constructor in python
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664861 13f79535-47bb-0310-9956-ffa450edef68
2006-10-31 05:43:53 +00:00
Mark Slee
e2bd58da29
Add python scons rules
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664860 13f79535-47bb-0310-9956-ffa450edef68
2006-10-31 05:09:24 +00:00
Mark Slee
725f9e6c71
Use AbstractMap instead of HashMap
...
Summary: So ConcurrentHashMap can be used safely
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664859 13f79535-47bb-0310-9956-ffa450edef68
2006-10-31 05:08:33 +00:00
Mark Slee
0f70d77333
Mutex was missing from libthrift build
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664858 13f79535-47bb-0310-9956-ffa450edef68
2006-10-28 00:51:14 +00:00
Mark Slee
d07ce6013b
Fix Python indentation for async methods
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664857 13f79535-47bb-0310-9956-ffa450edef68
2006-10-27 22:30:15 +00:00
Mark Slee
5ee76f8d7d
Skeletons should use virtual inheritance from the interface base
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664856 13f79535-47bb-0310-9956-ffa450edef68
2006-10-26 18:15:02 +00:00
Mark Slee
63608e8017
Include <time.h> not "time.h"
...
Reviewed By: aditya
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664855 13f79535-47bb-0310-9956-ffa450edef68
2006-10-26 05:06:26 +00:00
Mark Slee
5f8237d4de
Thrift PHP update for new Protocol wraps Transport style
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664854 13f79535-47bb-0310-9956-ffa450edef68
2006-10-26 04:57:03 +00:00
Mark Slee
bb31d0ac43
Let Python server take protocolFactory argument
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664853 13f79535-47bb-0310-9956-ffa450edef68
2006-10-26 04:56:40 +00:00
Mark Slee
1dd819cd2b
Bring Thrift test code up to date
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664852 13f79535-47bb-0310-9956-ffa450edef68
2006-10-26 04:56:18 +00:00
Aditya Agarwal
35ae1c784c
-- Change thrift logging macros to have a T_ prefix
...
Summary:
-- don't want to cause naming conflicts with other packages/dirs
Reviewed By: Mark Slee
Test Plan: Compiled
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664851 13f79535-47bb-0310-9956-ffa450edef68
2006-10-26 03:31:34 +00:00
Mark Slee
a3f3972e3d
Fix bum Java indentation/scoping for async methods
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664850 13f79535-47bb-0310-9956-ffa450edef68
2006-10-26 02:52:47 +00:00
Mark Slee
4ac459ff3a
Fix python server bugs and go to new protocol wraps transport model
...
Reviewed By: ccheever
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664849 13f79535-47bb-0310-9956-ffa450edef68
2006-10-25 21:39:01 +00:00
Mark Slee
5946a18596
New python operating model code-gen
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664848 13f79535-47bb-0310-9956-ffa450edef68
2006-10-25 21:38:39 +00:00
Mark Slee
575fa9a0df
Protocol wraps transport code gen for Thrift Java
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664847 13f79535-47bb-0310-9956-ffa450edef68
2006-10-25 20:54:10 +00:00
Mark Slee
456b7a868c
New protocol wrapping transport model for Thrift Java
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664846 13f79535-47bb-0310-9956-ffa450edef68
2006-10-25 20:53:37 +00:00
Mark Slee
b6f10d1fd1
Clean up Java Thrift transport code
...
Summary: More robust error checking
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664845 13f79535-47bb-0310-9956-ffa450edef68
2006-10-25 19:58:36 +00:00
Mark Slee
1b87070d63
Typo in thrift readme
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664844 13f79535-47bb-0310-9956-ffa450edef68
2006-10-25 19:58:06 +00:00
Mark Slee
60275c7a67
Give options for one-way or two-way buffering in PHP Thrift transports
...
Reviewed By: aditya
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664843 13f79535-47bb-0310-9956-ffa450edef68
2006-10-25 19:54:20 +00:00
Mark Slee
fe30c5f304
Improve python thrift transport, readAll, buffering, framing
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664842 13f79535-47bb-0310-9956-ffa450edef68
2006-10-25 19:53:36 +00:00
Mark Slee
d7173476bb
Stresstest onto new Thrift C++ model
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664841 13f79535-47bb-0310-9956-ffa450edef68
2006-10-25 19:52:10 +00:00
Mark Slee
f0712dc994
Update thrift compiler for new syntax, generate new form of C++ code
...
Reviewed By: wayne, he loves less warnings
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664840 13f79535-47bb-0310-9956-ffa450edef68
2006-10-25 19:03:57 +00:00
Mark Slee
a330265d82
Fix broken thrift test code for new model
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664839 13f79535-47bb-0310-9956-ffa450edef68
2006-10-25 19:03:32 +00:00
Mark Slee
4af6ed71e1
Change Thrift c++ to new protocol wrapping transport model
...
Summary: Also cleaned up excessive .h/.cpp files into Utils files
Reviewed By: aditya
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664838 13f79535-47bb-0310-9956-ffa450edef68
2006-10-25 19:02:49 +00:00
Mark Slee
b3bd81f479
Change Thrift .cc files to be .cpp files
...
Summary: CPP R00lz, CC Drewlz
Reviewed By: aditya
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664837 13f79535-47bb-0310-9956-ffa450edef68
2006-10-25 01:36:44 +00:00
Mark Slee
83303e1cf7
Allow optional framing of input/output in FramedTransport
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664836 13f79535-47bb-0310-9956-ffa450edef68
2006-10-25 01:29:37 +00:00
Mark Slee
92f00fb022
Framing option for non blocking server
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664835 13f79535-47bb-0310-9956-ffa450edef68
2006-10-25 01:28:17 +00:00
Mark Slee
9a695ba364
self.clients instead of self.client
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664834 13f79535-47bb-0310-9956-ffa450edef68
2006-10-24 18:55:36 +00:00
Mark Slee
4ce787f238
Missing self argument in server method
...
Reviewed By: ccheever
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664833 13f79535-47bb-0310-9956-ffa450edef68
2006-10-24 18:54:06 +00:00
Mark Slee
b90aa7c104
Python threadpool server for Thrift
...
Summary: Fixed number of threads that work from a shared queue
Reviewed By: cheever
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664832 13f79535-47bb-0310-9956-ffa450edef68
2006-10-24 18:49:45 +00:00
Mark Slee
9a079272b2
Change thrift stress test to .cpp file extension
...
Reviewed By: aditya
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664831 13f79535-47bb-0310-9956-ffa450edef68
2006-10-12 04:05:23 +00:00
Mark Slee
a6b48ea7ce
Rename test files to .cpp instead of .cc
...
Reviewed By: aditya
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664830 13f79535-47bb-0310-9956-ffa450edef68
2006-10-12 04:04:11 +00:00
Mark Slee
65681d061e
Generate .cpp files instead of .cc in Thrift
...
Reviewed By: aditya
Notes: Be consistent on cpp, dunno why ever chose cc
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664829 13f79535-47bb-0310-9956-ffa450edef68
2006-10-12 03:58:49 +00:00
Mark Slee
4f8da1dfb4
Allow the specification of custom container types in Thrift IDL files
...
Summary: If you want your map to be a hash_map instead of an stl::map, we now have a directive in Thrift to let you do that.
Instead of:
map<i32,i32>
You can do:
map[cpp:hash_map<int32_t,int32_t>]<i32,i32>
This tells the Thrift compiler to explicitly use whatever type was specified in the brackets when generating C++ code, instead of the implied Thrift type.
Reviewed By: aditya
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664828 13f79535-47bb-0310-9956-ffa450edef68
2006-10-12 02:47:27 +00:00
Aditya Agarwal
3950f47d6f
-- Thrift testing changes
...
Summary:
-- Modified StressTest.thrift to work (it was out of date..) and added tests for TBufferedFileWriter
-- Modified Makefiles to use the correct lib directory
Reviewed By: Slee
Test Plan: This is the test.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664827 13f79535-47bb-0310-9956-ffa450edef68
2006-10-11 02:50:15 +00:00
Aditya Agarwal
e528c76490
-- Thrift Log File
...
Summary:
-- This is the thrifty version of Pillar's batch_writer
-- Cleaned up a lot of the code in batch writer and made it conform to Thrift's strict coding standards
-- Added TBufferedRouterTransport.h/cc to actually route messsages via readEnd() to the file writer. It's
not quite as easy to route the messages in Thrift as it was in Pillar
Reviewed By: Slee
Test Plan: Tested by making sure that the file was recording data
Notes:
-- The real correctness test will be when I finish writing TLogFileTransport (pillar_logfile.cpp).
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664826 13f79535-47bb-0310-9956-ffa450edef68
2006-10-11 02:48:43 +00:00
Aditya Agarwal
be3f8d8c6d
-- Adding TLogging.h
...
Summary:
-- This should have been part of the previous commit
Reviewed By: Slee
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664825 13f79535-47bb-0310-9956-ffa450edef68
2006-10-11 02:43:25 +00:00
Aditya Agarwal
d622e966d2
-- Thrift fixes
...
Summary:
-- Made read buffering work (the buffer wasn't actually being used)
-- TServer now extends TRunnable (useful for testing)
-- Adding TLogging (the DEBUG and ERROR macros that we all know and love)
Reviewed By: Slee
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664824 13f79535-47bb-0310-9956-ffa450edef68
2006-10-11 02:42:49 +00:00