Class: Druid::Client
- Inherits:
-
Object
- Object
- Druid::Client
- Defined in:
- lib/druid/client.rb
Instance Attribute Summary collapse
-
#zk ⇒ Object
readonly
Returns the value of attribute zk.
Instance Method Summary collapse
- #data_source(source) ⇒ Object
- #data_sources ⇒ Object
-
#initialize(zookeeper, opts = {}) ⇒ Client
constructor
A new instance of Client.
Constructor Details
Instance Attribute Details
#zk ⇒ Object (readonly)
Returns the value of attribute zk.
7 8 9 |
# File 'lib/druid/client.rb', line 7 def zk @zk end |
Instance Method Details
#data_source(source) ⇒ Object
13 14 15 16 |
# File 'lib/druid/client.rb', line 13 def data_source(source) uri = @zk.data_sources[source] Druid::DataSource.new(source, uri) end |
#data_sources ⇒ Object
18 19 20 |
# File 'lib/druid/client.rb', line 18 def data_sources @zk.data_sources end |