Class: DruidDB::Client
- Inherits:
-
Object
- Object
- DruidDB::Client
- Includes:
- Queries::Core, Queries::Datasources, Queries::Task
- Defined in:
- lib/druiddb/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.
14 15 16 17 18 19 20 21 |
# File 'lib/druiddb/client.rb', line 14 def initialize( = {}) @config = DruidDB::Configuration.new() @zk = DruidDB::ZK.new(config) @broker = DruidDB::Node::Broker.new(config, zk) @coordinator = DruidDB::Node::Coordinator.new(config, zk) @overlord = DruidDB::Node::Overlord.new(config, zk) @writer = DruidDB::Writer.new(config, zk) end |
Instance Attribute Details
#broker ⇒ Object (readonly)
Returns the value of attribute broker.
7 8 9 |
# File 'lib/druiddb/client.rb', line 7 def broker @broker end |
#config ⇒ Object (readonly)
Returns the value of attribute config.
7 8 9 |
# File 'lib/druiddb/client.rb', line 7 def config @config end |
#coordinator ⇒ Object (readonly)
Returns the value of attribute coordinator.
7 8 9 |
# File 'lib/druiddb/client.rb', line 7 def coordinator @coordinator end |
#overlord ⇒ Object (readonly)
Returns the value of attribute overlord.
7 8 9 |
# File 'lib/druiddb/client.rb', line 7 def overlord @overlord end |
#writer ⇒ Object (readonly)
Returns the value of attribute writer.
7 8 9 |
# File 'lib/druiddb/client.rb', line 7 def writer @writer end |
#zk ⇒ Object (readonly)
Returns the value of attribute zk.
7 8 9 |
# File 'lib/druiddb/client.rb', line 7 def zk @zk end |