common/thrift.git
18 years agoAdded ax_event_base.m4 to find and configure libevent
Marc Slemko [Wed, 17 Jan 2007 08:32:16 +0000 (08:32 +0000)] 
Added ax_event_base.m4 to find and configure libevent
Modified configure.ac to pull in AX_EVENT_BASE
Modified Makefile.am to take EVENT settings from automake.

Reviewed by dcorson

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664919 13f79535-47bb-0310-9956-ffa450edef68

18 years agoMake boost base default to yes to make sure we don't get through configure without...
Marc Slemko [Wed, 17 Jan 2007 07:59:38 +0000 (07:59 +0000)] 
Make boost base default to yes to make sure we don't get through configure without boost
Fixed configure.ac to add a few missing functions and headers

Reviewed by dcorson

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664918 13f79535-47bb-0310-9956-ffa450edef68

18 years agoResolve complex typedefs in Thrift
Mark Slee [Tue, 16 Jan 2007 23:53:53 +0000 (23:53 +0000)] 
Resolve complex typedefs in Thrift

Summary: For function returns

Reviewed By: aditya

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664917 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift should generate C++ enums first before typdefs
Mark Slee [Tue, 16 Jan 2007 23:00:31 +0000 (23:00 +0000)] 
Thrift should generate C++ enums first before typdefs

Summary: In case you want to typedef an enum

Reviewed By: aditya

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664916 13f79535-47bb-0310-9956-ffa450edef68

18 years agoPrefix generated _args and _result helper classes with service name
Mark Slee [Tue, 16 Jan 2007 22:48:22 +0000 (22:48 +0000)] 
Prefix generated _args and _result helper classes with service name

Summary: To avoid conflicts when you have two services with the same name inside one .thrift file

Reviewed By: aditya

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664915 13f79535-47bb-0310-9956-ffa450edef68

18 years agoAdded autoconf/automake glue to run lib/py/setup.py as part of make install
Marc Slemko [Tue, 16 Jan 2007 22:20:19 +0000 (22:20 +0000)] 
Added autoconf/automake glue to run lib/py/setup.py as part of make install

Reviewed by mslee

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664914 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFixed some warnings, changed TSocketPool to inherit debugHandler from TSocket
robert [Mon, 15 Jan 2007 23:53:25 +0000 (23:53 +0000)] 
Fixed some warnings, changed TSocketPool to inherit debugHandler from TSocket
reviewed: mcslee
revert: yes

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664913 13f79535-47bb-0310-9956-ffa450edef68

18 years ago-- Allow manual setting of host and port in TSocket
Aditya Agarwal [Mon, 15 Jan 2007 23:14:58 +0000 (23:14 +0000)] 
-- Allow manual setting of host and port in TSocket

Summary:
-- required for TSocketPool equivalent functionality

Reviewed By: slee

Notes:
-- Todo is to replicate TSocketPool.php in C++

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664912 13f79535-47bb-0310-9956-ffa450edef68

18 years agoAdded open, close, and isOpen to TFramedTransport
robert [Mon, 15 Jan 2007 18:29:51 +0000 (18:29 +0000)] 
Added open, close, and isOpen to TFramedTransport
reviewed: mcslee
revert: yes

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664911 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift C++ code generator returns complex types by reference
Mark Slee [Fri, 12 Jan 2007 21:44:14 +0000 (21:44 +0000)] 
Thrift C++ code generator returns complex types by reference

Summary: Efficiency, Yo.

Reviewed By: aditya

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664910 13f79535-47bb-0310-9956-ffa450edef68

18 years agoCommitting code gen changes for const ref args to functions in Thrift
Mark Slee [Fri, 12 Jan 2007 02:10:16 +0000 (02:10 +0000)] 
Committing code gen changes for const ref args to functions in Thrift

Reviewed By: aditya

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664909 13f79535-47bb-0310-9956-ffa450edef68

18 years agoAdd PHP namespacing support to Thrift
Mark Slee [Fri, 12 Jan 2007 01:06:24 +0000 (01:06 +0000)] 
Add PHP namespacing support to Thrift

Summary: "php_namespace Whoa" at the top of your Thrift file, then all your defined class names start with "Whoa_"

Reviewed By: aditya

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664908 13f79535-47bb-0310-9956-ffa450edef68

18 years agoDisallow keywords in Thrift files
Mark Slee [Fri, 12 Jan 2007 00:23:26 +0000 (00:23 +0000)] 
Disallow keywords in Thrift files

Summary: Or else you are bound to get shitty errors in some generated languages.. They're not all covered here, but a lot of them are.

Reviewed By: dougb, bobby

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664907 13f79535-47bb-0310-9956-ffa450edef68

18 years agominor syntax change in thrift php library, reviewed by slee, revertible
Adam Nichols [Thu, 11 Jan 2007 21:25:29 +0000 (21:25 +0000)] 
minor syntax change in thrift php library, reviewed by slee, revertible

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664906 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFix call_user_func bug on debugHandler_
Mark Slee [Thu, 11 Jan 2007 01:26:00 +0000 (01:26 +0000)] 
Fix call_user_func bug on debugHandler_

Reviewed By: lucas

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664905 13f79535-47bb-0310-9956-ffa450edef68

18 years agoExample syntax for constants in Thrift
Mark Slee [Fri, 5 Jan 2007 01:09:04 +0000 (01:09 +0000)] 
Example syntax for constants in Thrift

Reviewed By: martin

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664904 13f79535-47bb-0310-9956-ffa450edef68

18 years agoAdd options to thrift transport classes for custom error handlers
Mark Slee [Wed, 3 Jan 2007 19:23:50 +0000 (19:23 +0000)] 
Add options to thrift transport classes for custom error handlers

Summary: So we can pass debug_rlog (facebook custom) in as a handler for errors to thrift (generic open source)

Reviewed By: lucas

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664903 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFix typo class variable bug in TSocketPool
Mark Slee [Wed, 3 Jan 2007 18:45:04 +0000 (18:45 +0000)] 
Fix typo class variable bug in TSocketPool

Reviewed By: corson

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664902 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFixed typo in Thrift README
putnam [Fri, 22 Dec 2006 10:35:12 +0000 (10:35 +0000)] 
Fixed typo in Thrift README

Summary:
  locacation? COME ON GUYS.

Review:
  peter

Test plan:
  I read it, then re-read it, then re-re-read it.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664901 13f79535-47bb-0310-9956-ffa450edef68

18 years agofixed a problem with read buffer resizing in TNonblockingServer
robert [Wed, 20 Dec 2006 19:25:38 +0000 (19:25 +0000)] 
fixed a problem with read buffer resizing in TNonblockingServer

reviewed: mcslee
revert: yes
test: send a large message to a nonblocking server

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664900 13f79535-47bb-0310-9956-ffa450edef68

18 years agofixed a bug in TFramedTransport where it was checking a size for nonzero after byte...
robert [Tue, 19 Dec 2006 22:27:54 +0000 (22:27 +0000)] 
fixed a bug in TFramedTransport where it was checking a size for nonzero after byte swapping it.

reviewed: mcslee
revert: yes
test: run a C++ client and server with framed transport

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664899 13f79535-47bb-0310-9956-ffa450edef68

18 years agomessage_ in TException can't be const or subclasses break
Mark Slee [Sat, 16 Dec 2006 01:06:49 +0000 (01:06 +0000)] 
message_ in TException can't be const or subclasses break

Reviewed By: yishan

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664898 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFix exceptions throw() and virtual destructor
Mark Slee [Sat, 16 Dec 2006 00:59:29 +0000 (00:59 +0000)] 
Fix exceptions throw() and virtual destructor

Reviewed By: yishan

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664897 13f79535-47bb-0310-9956-ffa450edef68

18 years agoAll user-defined thrift exceptions inherit from TException
Mark Slee [Fri, 15 Dec 2006 19:07:04 +0000 (19:07 +0000)] 
All user-defined thrift exceptions inherit from TException

Summary: So you can catch more effectively

Reviewed By: tbr-karl

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664896 13f79535-47bb-0310-9956-ffa450edef68

18 years agoAnother AccessNull bug fix in Thrift
Mark Slee [Wed, 13 Dec 2006 01:54:56 +0000 (01:54 +0000)] 
Another AccessNull bug fix in Thrift

Reviewed By: yhishan

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664895 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFix c++ Null inheritance issue
Mark Slee [Wed, 13 Dec 2006 01:45:26 +0000 (01:45 +0000)] 
Fix c++ Null inheritance issue

Reviewed By: yishan

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664894 13f79535-47bb-0310-9956-ffa450edef68

18 years agoTake out timestamps from generated files
Mark Slee [Wed, 13 Dec 2006 01:07:33 +0000 (01:07 +0000)] 
Take out timestamps from generated files

Summary: File system does this for you.

Reviewed By: martin, yishan

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664893 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift TException Cleanup
Martin Kraemer [Sat, 9 Dec 2006 01:57:58 +0000 (01:57 +0000)] 
Thrift TException Cleanup

Summary:
Destructors should be virtual or declared protected.

Reviewed By: mcslee

Revert Plan: revertible

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664892 13f79535-47bb-0310-9956-ffa450edef68

18 years ago-- Rename TBufferedFileWriter.h/cpp to TFileTransport.h/cpp
Aditya Agarwal [Sat, 9 Dec 2006 00:58:15 +0000 (00:58 +0000)] 
-- Rename TBufferedFileWriter.h/cpp to TFileTransport.h/cpp

Summary:
-- Thrift logfile is now officially in action!

Reviewed By: Mark Slee

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664891 13f79535-47bb-0310-9956-ffa450edef68

18 years ago-- Check all system call return values
Aditya Agarwal [Sat, 9 Dec 2006 00:47:03 +0000 (00:47 +0000)] 
-- Check all system call return values

Summary:
-- Throw TTransportException if a system call fails

Reviewed By: Mark Slee

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664890 13f79535-47bb-0310-9956-ffa450edef68

18 years ago-- TFileTransport (Thrift Logfile)
Aditya Agarwal [Fri, 8 Dec 2006 23:52:57 +0000 (23:52 +0000)] 
-- TFileTransport (Thrift Logfile)

Summary:
-- TBufferedFileWriter.h/cpp will be renamed to TFileTransport.h/cpp in the next commit.
-- TFileTransport is essentially reading and writing thrift calls to/from a file instead of a
   socket.
-- The code/design is somewhat similar to pillar_logfile but there are some significant changes.

todo:
-- still need to do error correction/detection

Reviewed By: Mark Slee

Test Plan:
-- Wrote test in thrift/test/cpp/src/main.cpp that appends to a file and replays requests

Notes:
It's finally time to port search over to Thrift

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664889 13f79535-47bb-0310-9956-ffa450edef68

18 years agoGenerate a null implementation of thrift C++ class for easy subclassing
Mark Slee [Fri, 8 Dec 2006 19:15:35 +0000 (19:15 +0000)] 
Generate a null implementation of thrift C++ class for easy subclassing

Summary: Sometimes you just want a subclass that only implements one method... annoying to fill in nulls for the others, so use the generated null class

Reviewed By: tbr-aditya

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664888 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift TException does not properly define virtual what() method.
Martin Kraemer [Wed, 6 Dec 2006 19:52:16 +0000 (19:52 +0000)] 
Thrift TException does not properly define virtual what() method.

Summary:
Clients would elect to call the base class what() method instead of the derived version.  This results in
less than usable exceptions for debugging.

Reviewed By: Karl * mcslee

Test Plan:
Tested with local application in development.

Revert Plan:
revertible.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664887 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFix TSimpleServer exception bug
Mark Slee [Wed, 6 Dec 2006 00:13:42 +0000 (00:13 +0000)] 
Fix TSimpleServer exception bug

Reviewed By: tbr-martin

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664886 13f79535-47bb-0310-9956-ffa450edef68

18 years agoMissing file in thrift parser, sorry d00dz!
Mark Slee [Thu, 30 Nov 2006 00:55:41 +0000 (00:55 +0000)] 
Missing file in thrift parser, sorry d00dz!

Summary: Forgot to svn add

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664885 13f79535-47bb-0310-9956-ffa450edef68

18 years agoOops take out printf debug
Mark Slee [Wed, 29 Nov 2006 22:07:23 +0000 (22:07 +0000)] 
Oops take out printf debug

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664884 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift supports HEX notation for int consts and proper python/php sets
Mark Slee [Wed, 29 Nov 2006 22:06:42 +0000 (22:06 +0000)] 
Thrift supports HEX notation for int consts and proper python/php sets

Reviewed By: yishan-tbr

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664883 13f79535-47bb-0310-9956-ffa450edef68

18 years agoStrings in JSON style thrift constants do not need quotes
Mark Slee [Wed, 29 Nov 2006 03:37:04 +0000 (03:37 +0000)] 
Strings in JSON style thrift constants do not need quotes

Summary: Cause it's just too much work to put in quotes sometimes. struct thing = { a : 325, bb : 5632} OBVIOUSLY a and bb are strings. Duh.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664882 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift supports arbitrarily typed constants across all languages
Mark Slee [Wed, 29 Nov 2006 03:19:31 +0000 (03:19 +0000)] 
Thrift supports arbitrarily typed constants across all languages

Summary: Hot! Now you can defined your maps to strings and other constnats things in your .thrift file, so you can have the same symbols and useful defaults defined in your client as in your server.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664881 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift compiler frontend support for constants
Mark Slee [Tue, 28 Nov 2006 01:24:07 +0000 (01:24 +0000)] 
Thrift compiler frontend support for constants

Summary: The parser now accepts constants and adds them into the parse tree

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664880 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFix _seqid to seqid_ name change in PHP
Mark Slee [Mon, 27 Nov 2006 20:25:43 +0000 (20:25 +0000)] 
Fix _seqid to seqid_ name change in PHP

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664879 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift: Fix PHP socket fread return
Mark Slee [Tue, 21 Nov 2006 02:01:22 +0000 (02:01 +0000)] 
Thrift: Fix PHP socket fread return

Summary: If you read the string "0" then it treats that as false, so we have to check for both === false and === '' manually.

Reviewed By: martin

Notes: I hate php

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664878 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFix thrift compiler typedef support
Mark Slee [Tue, 21 Nov 2006 00:44:23 +0000 (00:44 +0000)] 
Fix thrift compiler typedef support

Summary: Typedefed containers were wonk'd

Reviewed By: martin

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664877 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift: C++ peek() method and TException not Exception
Mark Slee [Thu, 16 Nov 2006 01:00:24 +0000 (01:00 +0000)] 
Thrift: C++ peek() method and TException not Exception

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664876 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFix bad implode call with nonexistant class variable in PHP SocketPool
Mark Slee [Wed, 15 Nov 2006 22:23:06 +0000 (22:23 +0000)] 
Fix bad implode call with nonexistant class variable in PHP SocketPool

Reviewed By: karl

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664875 13f79535-47bb-0310-9956-ffa450edef68

18 years agoComma after ENUM with no explicit value
Mark Slee [Wed, 15 Nov 2006 21:25:34 +0000 (21:25 +0000)] 
Comma after ENUM with no explicit value

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664874 13f79535-47bb-0310-9956-ffa450edef68

18 years agoRest definition should not implement interface, the method signatures are different.
Mark Slee [Tue, 14 Nov 2006 23:51:27 +0000 (23:51 +0000)] 
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

18 years agoThrift generates a REST handler for PHP code
Mark Slee [Tue, 14 Nov 2006 23:48:00 +0000 (23:48 +0000)] 
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

18 years agoAll thrift PHP class constructors can take an array as the constructor argument
Mark Slee [Fri, 10 Nov 2006 23:07:35 +0000 (23:07 +0000)] 
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

18 years agoI lied before, now thrift really supports single or double dashes
Mark Slee [Fri, 10 Nov 2006 22:32:07 +0000 (22:32 +0000)] 
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

18 years agoAllow single dash or double dash for thrift flags
Mark Slee [Thu, 9 Nov 2006 00:23:30 +0000 (00:23 +0000)] 
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

18 years agoThrift Include Path Specification
Martin Kraemer [Thu, 9 Nov 2006 00:06:36 +0000 (00:06 +0000)] 
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

18 years agoDo not print ; in thrift parser
Mark Slee [Wed, 8 Nov 2006 23:44:59 +0000 (23:44 +0000)] 
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

18 years agoFix TType.php problem
Mark Slee [Tue, 7 Nov 2006 23:03:00 +0000 (23:03 +0000)] 
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

18 years agoFix C++ skeleton code generator
Mark Slee [Mon, 6 Nov 2006 21:40:11 +0000 (21:40 +0000)] 
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

18 years agoMake commas and/or semicolons both optional in thrift
Mark Slee [Thu, 2 Nov 2006 18:43:12 +0000 (18:43 +0000)] 
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

18 years agoIterate python dictionaries with for k,v in dict.items()
Mark Slee [Tue, 31 Oct 2006 05:56:27 +0000 (05:56 +0000)] 
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

18 years agoPy inherited processor must pass handler to parent constructor
Mark Slee [Tue, 31 Oct 2006 05:45:33 +0000 (05:45 +0000)] 
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

18 years agoInherited processors must call parent constructor in python
Mark Slee [Tue, 31 Oct 2006 05:43:53 +0000 (05:43 +0000)] 
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

18 years agoAdd python scons rules
Mark Slee [Tue, 31 Oct 2006 05:09:24 +0000 (05:09 +0000)] 
Add python scons rules

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664860 13f79535-47bb-0310-9956-ffa450edef68

18 years agoUse AbstractMap instead of HashMap
Mark Slee [Tue, 31 Oct 2006 05:08:33 +0000 (05:08 +0000)] 
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

18 years agoMutex was missing from libthrift build
Mark Slee [Sat, 28 Oct 2006 00:51:14 +0000 (00:51 +0000)] 
Mutex was missing from libthrift build

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664858 13f79535-47bb-0310-9956-ffa450edef68

18 years agoFix Python indentation for async methods
Mark Slee [Fri, 27 Oct 2006 22:30:15 +0000 (22:30 +0000)] 
Fix Python indentation for async methods

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664857 13f79535-47bb-0310-9956-ffa450edef68

18 years agoSkeletons should use virtual inheritance from the interface base
Mark Slee [Thu, 26 Oct 2006 18:15:02 +0000 (18:15 +0000)] 
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

18 years agoInclude <time.h> not "time.h"
Mark Slee [Thu, 26 Oct 2006 05:06:26 +0000 (05:06 +0000)] 
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

18 years agoThrift PHP update for new Protocol wraps Transport style
Mark Slee [Thu, 26 Oct 2006 04:57:03 +0000 (04:57 +0000)] 
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

18 years agoLet Python server take protocolFactory argument
Mark Slee [Thu, 26 Oct 2006 04:56:40 +0000 (04:56 +0000)] 
Let Python server take protocolFactory argument

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664853 13f79535-47bb-0310-9956-ffa450edef68

18 years agoBring Thrift test code up to date
Mark Slee [Thu, 26 Oct 2006 04:56:18 +0000 (04:56 +0000)] 
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

18 years ago-- Change thrift logging macros to have a T_ prefix
Aditya Agarwal [Thu, 26 Oct 2006 03:31:34 +0000 (03:31 +0000)] 
-- 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

18 years agoFix bum Java indentation/scoping for async methods
Mark Slee [Thu, 26 Oct 2006 02:52:47 +0000 (02:52 +0000)] 
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

18 years agoFix python server bugs and go to new protocol wraps transport model
Mark Slee [Wed, 25 Oct 2006 21:39:01 +0000 (21:39 +0000)] 
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

18 years agoNew python operating model code-gen
Mark Slee [Wed, 25 Oct 2006 21:38:39 +0000 (21:38 +0000)] 
New python operating model code-gen

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664848 13f79535-47bb-0310-9956-ffa450edef68

18 years agoProtocol wraps transport code gen for Thrift Java
Mark Slee [Wed, 25 Oct 2006 20:54:10 +0000 (20:54 +0000)] 
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

18 years agoNew protocol wrapping transport model for Thrift Java
Mark Slee [Wed, 25 Oct 2006 20:53:37 +0000 (20:53 +0000)] 
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

18 years agoClean up Java Thrift transport code
Mark Slee [Wed, 25 Oct 2006 19:58:36 +0000 (19:58 +0000)] 
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

18 years agoTypo in thrift readme
Mark Slee [Wed, 25 Oct 2006 19:58:06 +0000 (19:58 +0000)] 
Typo in thrift readme

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664844 13f79535-47bb-0310-9956-ffa450edef68

18 years agoGive options for one-way or two-way buffering in PHP Thrift transports
Mark Slee [Wed, 25 Oct 2006 19:54:20 +0000 (19:54 +0000)] 
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

18 years agoImprove python thrift transport, readAll, buffering, framing
Mark Slee [Wed, 25 Oct 2006 19:53:36 +0000 (19:53 +0000)] 
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

18 years agoStresstest onto new Thrift C++ model
Mark Slee [Wed, 25 Oct 2006 19:52:10 +0000 (19:52 +0000)] 
Stresstest onto new Thrift C++ model

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664841 13f79535-47bb-0310-9956-ffa450edef68

18 years agoUpdate thrift compiler for new syntax, generate new form of C++ code
Mark Slee [Wed, 25 Oct 2006 19:03:57 +0000 (19:03 +0000)] 
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

18 years agoFix broken thrift test code for new model
Mark Slee [Wed, 25 Oct 2006 19:03:32 +0000 (19:03 +0000)] 
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

18 years agoChange Thrift c++ to new protocol wrapping transport model
Mark Slee [Wed, 25 Oct 2006 19:02:49 +0000 (19:02 +0000)] 
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

18 years agoChange Thrift .cc files to be .cpp files
Mark Slee [Wed, 25 Oct 2006 01:36:44 +0000 (01:36 +0000)] 
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

18 years agoAllow optional framing of input/output in FramedTransport
Mark Slee [Wed, 25 Oct 2006 01:29:37 +0000 (01:29 +0000)] 
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

18 years agoFraming option for non blocking server
Mark Slee [Wed, 25 Oct 2006 01:28:17 +0000 (01:28 +0000)] 
Framing option for non blocking server

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664835 13f79535-47bb-0310-9956-ffa450edef68

18 years agoself.clients instead of self.client
Mark Slee [Tue, 24 Oct 2006 18:55:36 +0000 (18:55 +0000)] 
self.clients instead of self.client

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664834 13f79535-47bb-0310-9956-ffa450edef68

18 years agoMissing self argument in server method
Mark Slee [Tue, 24 Oct 2006 18:54:06 +0000 (18:54 +0000)] 
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

18 years agoPython threadpool server for Thrift
Mark Slee [Tue, 24 Oct 2006 18:49:45 +0000 (18:49 +0000)] 
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

18 years agoChange thrift stress test to .cpp file extension
Mark Slee [Thu, 12 Oct 2006 04:05:23 +0000 (04:05 +0000)] 
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

18 years agoRename test files to .cpp instead of .cc
Mark Slee [Thu, 12 Oct 2006 04:04:11 +0000 (04:04 +0000)] 
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

18 years agoGenerate .cpp files instead of .cc in Thrift
Mark Slee [Thu, 12 Oct 2006 03:58:49 +0000 (03:58 +0000)] 
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

18 years agoAllow the specification of custom container types in Thrift IDL files
Mark Slee [Thu, 12 Oct 2006 02:47:27 +0000 (02:47 +0000)] 
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

18 years ago-- Thrift testing changes
Aditya Agarwal [Wed, 11 Oct 2006 02:50:15 +0000 (02:50 +0000)] 
-- 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

18 years ago-- Thrift Log File
Aditya Agarwal [Wed, 11 Oct 2006 02:48:43 +0000 (02:48 +0000)] 
-- 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

18 years ago-- Adding TLogging.h
Aditya Agarwal [Wed, 11 Oct 2006 02:43:25 +0000 (02:43 +0000)] 
-- 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

18 years ago-- Thrift fixes
Aditya Agarwal [Wed, 11 Oct 2006 02:42:49 +0000 (02:42 +0000)] 
-- 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

18 years agoTest code updates
Mark Slee [Tue, 10 Oct 2006 01:57:32 +0000 (01:57 +0000)] 
Test code updates

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664823 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift compiler code cleanup, comments, php inline generation, etc
Mark Slee [Tue, 10 Oct 2006 01:42:59 +0000 (01:42 +0000)] 
Thrift compiler code cleanup, comments, php inline generation, etc

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664822 13f79535-47bb-0310-9956-ffa450edef68

18 years agoPHP Thrift improvements, Binary code skipping, etc
Mark Slee [Tue, 10 Oct 2006 01:42:29 +0000 (01:42 +0000)] 
PHP Thrift improvements, Binary code skipping, etc

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664821 13f79535-47bb-0310-9956-ffa450edef68

18 years agoThrift Java HTTP client
Mark Slee [Tue, 10 Oct 2006 01:38:25 +0000 (01:38 +0000)] 
Thrift Java HTTP client

 line, and those below, will be ignored--

A    java/src/transport/THttpClient.java

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664820 13f79535-47bb-0310-9956-ffa450edef68