Module: Hypertable
- Defined in:
- lib/hypertable/thrift_client.rb,
lib/hypertable/gen-rb/Hql_types.rb,
lib/hypertable/gen-rb/HqlService.rb,
lib/hypertable/gen-rb/Client_types.rb,
lib/hypertable/gen-rb/ClientService.rb,
lib/hypertable/gen-rb/Hql_constants.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, user, password, timeout_ms = 20000) ⇒ Object
135 136 137 138 139 140 141 142 |
# File 'lib/hypertable/thrift_client.rb', line 135 def self.with_thrift_client(host, port, user, password, timeout_ms = 20000) client = ThriftClient.new(host, port, user, password, timeout_ms) begin yield client ensure client.close() end end |