Module: Hypertable
- Defined in:
- lib/hypertable/thrift_client.rb,
lib/hypertable/gen-rb/hql_types.rb,
lib/hypertable/gen-rb/hql_service.rb,
lib/hypertable/gen-rb/client_types.rb,
lib/hypertable/gen-rb/hql_constants.rb,
lib/hypertable/gen-rb/client_service.rb,
lib/hypertable/gen-rb/client_constants.rb
Defined Under Namespace
Modules: ThriftGen Classes: ThriftClient
Class Method Summary collapse
Class Method Details
.with_thrift_client(host, port, timeout_ms = 20000) ⇒ Object
85 86 87 88 89 90 91 92 |
# File 'lib/hypertable/thrift_client.rb', line 85 def self.with_thrift_client(host, port, timeout_ms = 20000) client = ThriftClient.new(host, port, timeout_ms) begin yield client ensure client.close() end end |