This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Evan Weaver (author)
Thu Dec 10 04:35:13 -0800 2009
| name | age | message | |
|---|---|---|---|
| |
CHANGELOG | Thu Dec 10 04:28:49 -0800 2009 | |
| |
LICENSE | Tue Oct 13 21:03:15 -0700 2009 | |
| |
Manifest | Wed Oct 14 17:36:01 -0700 2009 | |
| |
README | Mon Oct 26 11:38:11 -0700 2009 | |
| |
Rakefile | Sat Oct 24 18:07:09 -0700 2009 | |
| |
lib/ | Thu Dec 10 04:35:13 -0800 2009 | |
| |
test/ | Mon Nov 30 17:16:05 -0800 2009 |
README
thrift_client A Thrift client wrapper that encapsulates some common failover behavior. == License Copyright 2009 Twitter, Inc. See included LICENSE file. The public certificate for this gem is here[http://rubyforge.org/frs/download.php/25331/evan_weaver-original-public_cert.pem]. == Features * Transparent connection management * Configurable failover and retry backoff * Ruby 1.9 compatibility * ThriftClient::Simple class, for working without generated bindings. The Github source repository is {here}[http://github.com/fauna/thrift_client/]. Patches and contributions are very welcome. == Usage Instantiate a client: client = ThriftClient.new(CassandraRb::Client, '127.0.0.1:9160', :retries => 2) You can then make calls to the server via the <tt>client</tt> instance as if was your internal Thrift client. The connection will be opened lazily and methods will be proxied through. client.get_string_list_property("keyspaces") On failures, the client will try the remaining servers in the list before giving up. See ThriftClient for more. == Installation You need Ruby 1.8 or 1.9. If you have those, just run: sudo gem install thrift_client == Reporting problems The Github issue tracker is {here}[http://github.com/fauna/thrift_client/issues].







