Class: Druid::Client
- Inherits:
-
Object
- Object
- Druid::Client
- Includes:
- Queries::Core, Queries::Task
- Defined in:
- lib/druid/client.rb
Instance Attribute Summary collapse
-
#broker ⇒ Object
readonly
Returns the value of attribute broker.
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#coordinator ⇒ Object
readonly
Returns the value of attribute coordinator.
-
#overlord ⇒ Object
readonly
Returns the value of attribute overlord.
-
#writer ⇒ Object
readonly
Returns the value of attribute writer.
-
#zk ⇒ Object
readonly
Returns the value of attribute zk.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
Methods included from Queries::Core
Constructor Details
#initialize(options = {}) ⇒ Client
Returns a new instance of Client.
13 14 15 16 17 18 19 20 |
# File 'lib/druid/client.rb', line 13 def initialize( = {}) @config = Druid::Configuration.new() @zk = Druid::ZK.new(config) @broker = Druid::Node::Broker.new(config, zk) @coordinator = Druid::Node::Coordinator.new(config, zk) @overlord = Druid::Node::Overlord.new(config, zk) @writer = Druid::Writer.new(config, zk) end |
Instance Attribute Details
#broker ⇒ Object (readonly)
Returns the value of attribute broker.
6 7 8 |
# File 'lib/druid/client.rb', line 6 def broker @broker end |
#config ⇒ Object (readonly)
Returns the value of attribute config.
6 7 8 |
# File 'lib/druid/client.rb', line 6 def config @config end |
#coordinator ⇒ Object (readonly)
Returns the value of attribute coordinator.
6 7 8 |
# File 'lib/druid/client.rb', line 6 def coordinator @coordinator end |
#overlord ⇒ Object (readonly)
Returns the value of attribute overlord.
6 7 8 |
# File 'lib/druid/client.rb', line 6 def overlord @overlord end |
#writer ⇒ Object (readonly)
Returns the value of attribute writer.
6 7 8 |
# File 'lib/druid/client.rb', line 6 def writer @writer end |
#zk ⇒ Object (readonly)
Returns the value of attribute zk.
6 7 8 |
# File 'lib/druid/client.rb', line 6 def zk @zk end |