Kevin Clark [Wed, 18 Jun 2008 01:05:47 +0000 (01:05 +0000)]
Spec out Thrift::Processor
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668944
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:05:32 +0000 (01:05 +0000)]
Add pending spec for sequence-ids on Thrift::Client
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668943
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:05:17 +0000 (01:05 +0000)]
Add backwards-compatibility spec
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668942
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:05:03 +0000 (01:05 +0000)]
Spec out Thrift::Client
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668941
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:04:48 +0000 (01:04 +0000)]
Fully spec out Thrift::Exception and Thrift::ApplicationException
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668940
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:04:34 +0000 (01:04 +0000)]
Start speccing exceptions and restore the (message) arg to super in Thrift::ApplicationException
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668939
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:04:18 +0000 (01:04 +0000)]
Fix the last of the deprecated names in tests
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668938
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:04:03 +0000 (01:04 +0000)]
Fix name usage in tests. Remove test for TTransport as it really wasn't testing anything useful.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668937
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:03:48 +0000 (01:03 +0000)]
Remove test_remappings because it isn't comprehensive and it's triggering undesired warnings. This should be re-created as a spec.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668936
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:03:33 +0000 (01:03 +0000)]
Update the tutorial files to stop using deprecated names
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668935
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:03:17 +0000 (01:03 +0000)]
Fix the requires generated by the compiler
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668934
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:03:03 +0000 (01:03 +0000)]
Fix more deprecated name usages
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668933
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:02:46 +0000 (01:02 +0000)]
Fix the shebangs for the tutorial thrift files
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668932
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:02:31 +0000 (01:02 +0000)]
Use deprecate_module! where appropriate
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668931
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:02:14 +0000 (01:02 +0000)]
Solve the information leak problem between deprecations. Unfortunately this was caused by a nasty ruby bug.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668930
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:01:57 +0000 (01:01 +0000)]
Add (currently failing) spec for information leak between deprecations
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668929
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:01:40 +0000 (01:01 +0000)]
Use the correct name in deprecation warnings
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668928
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:01:25 +0000 (01:01 +0000)]
Implement deprecate_module! and fully spec it
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668927
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:01:07 +0000 (01:01 +0000)]
deprecate_class! now sets up a proxy class that logs a warning when used
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668926
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:00:50 +0000 (01:00 +0000)]
Ensure the ruby tutorial uses the current library instead of the installed one
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668925
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:00:33 +0000 (01:00 +0000)]
Finish renaming/deprecating classes. Change a few more filenames, like thrift/transport/ttransport -> thrift/transport
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668924
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 01:00:12 +0000 (01:00 +0000)]
Add new spec for deprecate_class!
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668923
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:59:56 +0000 (00:59 +0000)]
Clean up the last few deprecation warnings in the tests
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668922
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:59:37 +0000 (00:59 +0000)]
Finish up the CamelCase -> ruby_style changes
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668921
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:59:17 +0000 (00:59 +0000)]
Convert more CamelCase names to ruby_style
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668920
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:58:58 +0000 (00:58 +0000)]
Add comment and convert super(args)->super
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668919
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:58:40 +0000 (00:58 +0000)]
Stop re-defining deprecated methods in subclasses
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668918
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:58:23 +0000 (00:58 +0000)]
Start renaming camelCase methods to ruby_style
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668917
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:58:04 +0000 (00:58 +0000)]
Add another spec for deprecate!
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668916
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:57:46 +0000 (00:57 +0000)]
Add caller info to the deprecation warning
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668915
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:57:26 +0000 (00:57 +0000)]
Move thrift/protocol/tprotocol to thrift/protocol and thrift/protocol/tbinaryprotocol to thrift/protocol/binaryprotocol. Leave shim files behind for backwards compatibility
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668914
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:57:06 +0000 (00:57 +0000)]
Make `rake` run the ruby tests in test/rb as well as the new specs
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668913
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:56:48 +0000 (00:56 +0000)]
Fix up thrift/thrift to only require the the files that define the classes it used to hold. This fixes the existing tests
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668912
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:56:30 +0000 (00:56 +0000)]
Set up the class deprecations
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668911
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:56:08 +0000 (00:56 +0000)]
Actually turn off deprecation when Thrift::DEPRECATION is false
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668910
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:55:50 +0000 (00:55 +0000)]
Remove requires of 'thrift/thrift' from library files
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668909
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:55:29 +0000 (00:55 +0000)]
Add in hook to only provide the deprecated API when the client doesn't require 'thrift' directly
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668908
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:55:11 +0000 (00:55 +0000)]
Add simple Rakefile for running specs
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668907
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:54:53 +0000 (00:54 +0000)]
Re-define the semantics of deprecate! and add deprecate_class! Include full specs for deprecate!/deprecate_class!
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668906
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:54:33 +0000 (00:54 +0000)]
rb: TBinaryProtocol => Thrift::BinaryProtocol
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668905
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:54:13 +0000 (00:54 +0000)]
rb: Add more classes/modules to the Thrift namespace. Provide backwards compatable mappings.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668904
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:53:48 +0000 (00:53 +0000)]
rb: Move client, processor, struct files for consistant naming.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668903
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:53:28 +0000 (00:53 +0000)]
rb: Move exceptions, types, processor, client, struct under Thrift module. Add constants for backwards compatability
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668902
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:53:07 +0000 (00:53 +0000)]
Split out thrift/thrift.rb, add top level thrift.rb in prep for gemmification
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668901
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:52:46 +0000 (00:52 +0000)]
rb: Remove extra return statement
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668900
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:52:26 +0000 (00:52 +0000)]
rb: Add deprecate! method Rename TTransport#readAll/isOpen, and deprecate
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668899
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:52:05 +0000 (00:52 +0000)]
rb: Switch to dyn generator syntax for testing namespaces
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668898
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:51:45 +0000 (00:51 +0000)]
Exercise namespacing in Ruby tests
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668897
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:51:25 +0000 (00:51 +0000)]
Swap out 'tests' target for 'check' in Ruby Makefile
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668896
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:51:06 +0000 (00:51 +0000)]
Style tweaks
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668895
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:50:44 +0000 (00:50 +0000)]
add simple Ruby HTTP server and client classes
Using Mongrel for the server.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668894
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:50:24 +0000 (00:50 +0000)]
Clean up Ruby TTransport defs
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668893
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:50:00 +0000 (00:50 +0000)]
Add tests for Ruby TTransport. Only require .rb files in ruby tests.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668892
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:49:38 +0000 (00:49 +0000)]
add additional entrypoint to TThreadPoolServer with easy exception handling
An additional method #serve_rescuable is added, which relays any exceptions
that happen in worker threads to the caller, where they can be handled
directly. 'retry' works too, allowing code like:
begin
server.rescuable_serve
rescue StandardError => e
puts "got exception: #{e.inspect}"
## do something
retry
end
The semantics of TThreadPoolServer#serve remain the same.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668891
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:49:17 +0000 (00:49 +0000)]
Reorganize tests
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668890
13f79535-47bb-0310-9956-
ffa450edef68
Kevin Clark [Wed, 18 Jun 2008 00:48:56 +0000 (00:48 +0000)]
Tweak Ruby Makefile to use --gen syntax
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668889
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 11 Jun 2008 05:31:09 +0000 (05:31 +0000)]
Rename ax_thrift_gen.m4, which now contains two macros.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666533
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 11 Jun 2008 01:20:54 +0000 (01:20 +0000)]
Java/TThreadPoolServer: Shut down more gracefully. (THRIFT-11)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666502
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 11 Jun 2008 01:19:12 +0000 (01:19 +0000)]
Add a working RPM .spec file to contrib.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666501
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 11 Jun 2008 01:19:07 +0000 (01:19 +0000)]
Make "make dist" work with the new Erlang stuff.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666500
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 11 Jun 2008 01:19:02 +0000 (01:19 +0000)]
Move some top-level files into more sensible directories.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666499
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 11 Jun 2008 01:18:54 +0000 (01:18 +0000)]
Include <cstring> and use "std::" for memset in T[Server]Socket.cpp.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666498
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 11 Jun 2008 01:18:44 +0000 (01:18 +0000)]
Include <cstring> and use "std::" for memcpy in TBufferTransports.h.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666497
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 11 Jun 2008 01:18:36 +0000 (01:18 +0000)]
Include <limits> in TBinaryProtocol.cpp for numeric_limits.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666496
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 11 Jun 2008 01:18:28 +0000 (01:18 +0000)]
Declare special mutex initializers unconditionally.
We don't want to include pthread.h in Mutex.h, so we can't detect whether
the non-portable mutex initializers are defined. Instead, we just declare
them unconditionally and only define them if they are available.
Unfortunately, this means that users will get a link error instead of a
compile error if they try to use them when they are not available.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666495
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 11 Jun 2008 01:18:20 +0000 (01:18 +0000)]
Fix some includes in Thrift.{h,cpp}.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666494
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 11 Jun 2008 01:18:11 +0000 (01:18 +0000)]
Regenerate reflection_limited to pick up some compiler improvements.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666493
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 11 Jun 2008 01:18:03 +0000 (01:18 +0000)]
Eliminate some trailing whitespace from the generated Python code.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666492
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 11 Jun 2008 01:17:00 +0000 (01:17 +0000)]
Include limits.h in the compiler for PATH_MAX
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666491
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 11 Jun 2008 01:16:53 +0000 (01:16 +0000)]
Rename AM_CONDITIONALs from ENABLE_* to WITH_*.
This is to match the configure command-line options that define them.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666490
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 11 Jun 2008 01:16:45 +0000 (01:16 +0000)]
Allow out-of-source builds.
- Clean up lib/cpp/Makefile.am to use AM_CXXFLAGS etc instead of
target-specific so we can take advantage of default flags.
- Use top_builddir in a few places instead of top_srcdir.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666489
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 11 Jun 2008 01:16:37 +0000 (01:16 +0000)]
Allow Thrift to be built without the Python library.
- Modify configure.ac to check for Python conditionally, like we do for
Java, Mono, and Erlang.
- Modify Makefile.am to add "py" to SUBDIRS only if Python was detected.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666488
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 11 Jun 2008 01:16:29 +0000 (01:16 +0000)]
Clean up some bad/missed merges from the alterl merge.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666486
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 11 Jun 2008 01:16:15 +0000 (01:16 +0000)]
[erl] Finish fixing test_server to work with binary strings
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666485
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 11 Jun 2008 01:16:09 +0000 (01:16 +0000)]
[erl] fix test_server to expect binary type for strings rather than lists
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666484
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 11 Jun 2008 01:16:01 +0000 (01:16 +0000)]
Fix thrift_server to work with newest thrift_processor
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666483
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 11 Jun 2008 01:15:54 +0000 (01:15 +0000)]
[erl] fix generator to use unexpanded structs for reply_types on functions
This fixes a bug where thrift_client would return a tuple rather than a tagged record when the called function returned a struct.
Test plan:
in tutorial client:
Log: {sharedStruct,1,<<"RARG">>}
instead of:
Log: {1,<<"RARG">>}
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666482
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 11 Jun 2008 01:15:45 +0000 (01:15 +0000)]
Rename "alterl" to "erl".
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666481
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 11 Jun 2008 01:14:38 +0000 (01:14 +0000)]
Remove all of the old Erlang stuff in preparation for renaming alterl.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666480
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 11 Jun 2008 01:14:07 +0000 (01:14 +0000)]
Add thrift_http_transport for alterl.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666478
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 11 Jun 2008 01:14:01 +0000 (01:14 +0000)]
Another whitespace rampage
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666477
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 11 Jun 2008 01:13:37 +0000 (01:13 +0000)]
Add lib/alterl/ebin to gitignore (it was lost in the rebase).
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666476
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 11 Jun 2008 01:13:33 +0000 (01:13 +0000)]
add thrift_client:cast
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666475
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 11 Jun 2008 01:13:26 +0000 (01:13 +0000)]
adding +native flag to makefile for compilation fun
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666474
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 11 Jun 2008 01:13:19 +0000 (01:13 +0000)]
Construct tagged tuples directly in thrift_protocol rather than making untagged ones and prepending the tag
Test Plan: if it didn't work, everything would break spectacularly
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666473
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 11 Jun 2008 01:13:12 +0000 (01:13 +0000)]
Optimize thrift_protocol a bit - eliminate use of a dict. gadget on a dump file runs about 15% faster
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666472
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 11 Jun 2008 01:13:05 +0000 (01:13 +0000)]
Add thrift_file_transport, useful for reading from files dumped by thrift_disk_log_transport for example
Test plan: using this in a local tool in reader mode, and works fine. Haven't tested write mode, sorry
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666471
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 11 Jun 2008 01:12:58 +0000 (01:12 +0000)]
Make fake install target for alterl
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666470
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 11 Jun 2008 01:12:52 +0000 (01:12 +0000)]
Add back thrift_server.erl which we still use
Sorry facebook guys :P We'll switch to thrift_socket_server eventually
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666469
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 11 Jun 2008 01:12:45 +0000 (01:12 +0000)]
Fix thrift_binary_protocol to be hipe-compatible
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666468
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 11 Jun 2008 01:12:38 +0000 (01:12 +0000)]
Change thrift_disk_log_transport to not flush when flush/1 is called if sync_every is defined
Summary:
For fast logging we don't want to actually flush to disk after every message.
There's force_flush/1 now if you actually want to force one
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666467
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 11 Jun 2008 01:12:31 +0000 (01:12 +0000)]
Add thrift_base64_transport which writes base64 encoded data
Summary:
This is to make it easy to run Hadoop mapreduces using Hadoop Streaming on thrift-serialized structs
without implementing any special file splitter or anything
Test plan: test_disklog:t_base64()
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666466
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 11 Jun 2008 01:12:20 +0000 (01:12 +0000)]
Add thrift_client:send_call which sends a function call but doesn't read a response.
Summary:
This is for logging applications with thrift_disk_log_transport, so the function calls
logged don't necessarily have to be async void
Test plan:
Added to test_disklog.erl
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666465
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 11 Jun 2008 01:12:09 +0000 (01:12 +0000)]
Add thrift_disk_log_transport which writes to the disk_log module
Summary:
See test/erl/src/test_disklog.erl for example usage
Test plan: test_disklog:t(), then hexdump -C /tmp/test_log.1
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666464
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 11 Jun 2008 01:11:57 +0000 (01:11 +0000)]
Factory-ize generation of thrift_binary_protocol to clean things up a bit and decouple thrift_socket_transport's factory from binary protocol
Test plan: tutorial still runs. Someone who actually uses the Options to thrift_client should test this.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666463
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 11 Jun 2008 01:03:44 +0000 (01:03 +0000)]
Parse options to thrift_socket_transport:new_protocol_factory/3 "manually" - O(n) instead of O(n^2)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666462
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 11 Jun 2008 01:03:37 +0000 (01:03 +0000)]
Rename "Connector" to "ProtocolFactory" since that's what it is (response to review by eletuchy)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666461
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 11 Jun 2008 01:03:29 +0000 (01:03 +0000)]
Modify thrift_client to take in a "connector" function as a parameter, enabling substitution of different protocol/transports
Summary:
Left in a backwards-compatible start_link with (Host, Port, Service) args
Test plan:
tutorial/alterl still works
Notes:
We may want to go a little further and get rid of the binary_protocol specific stuff from socket_transport as well
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666460
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 11 Jun 2008 01:03:22 +0000 (01:03 +0000)]
Oops - dont' use server.config anymore for alterl tutorial
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666459
13f79535-47bb-0310-9956-
ffa450edef68
David Reiss [Wed, 11 Jun 2008 01:03:16 +0000 (01:03 +0000)]
New tutorial for alterl bindings - include working client + server
Test plan:
./client.sh
server:start().
client:t().
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666458
13f79535-47bb-0310-9956-
ffa450edef68