Class: Druid::Client

Inherits:
Object
  • Object
show all
Includes:
Queries::Core, Queries::Task
Defined in:
lib/druid/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Queries::Core

#query

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(options = {})
  @config = Druid::Configuration.new(options)
  @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

#brokerObject (readonly)

Returns the value of attribute broker.



6
7
8
# File 'lib/druid/client.rb', line 6

def broker
  @broker
end

#configObject (readonly)

Returns the value of attribute config.



6
7
8
# File 'lib/druid/client.rb', line 6

def config
  @config
end

#coordinatorObject (readonly)

Returns the value of attribute coordinator.



6
7
8
# File 'lib/druid/client.rb', line 6

def coordinator
  @coordinator
end

#overlordObject (readonly)

Returns the value of attribute overlord.



6
7
8
# File 'lib/druid/client.rb', line 6

def overlord
  @overlord
end

#writerObject (readonly)

Returns the value of attribute writer.



6
7
8
# File 'lib/druid/client.rb', line 6

def writer
  @writer
end

#zkObject (readonly)

Returns the value of attribute zk.



6
7
8
# File 'lib/druid/client.rb', line 6

def zk
  @zk
end