Class: Fluent::GroongaInput

Inherits:
Input
  • Object
show all
Defined in:
lib/fluent/plugin/in_groonga.rb

Defined Under Namespace

Classes: BaseInput, GQTPInput, HTTPInput, Repeater

Instance Method Summary collapse

Constructor Details

#initializeGroongaInput

Returns a new instance of GroongaInput.



31
32
33
# File 'lib/fluent/plugin/in_groonga.rb', line 31

def initialize
  super
end

Instance Method Details

#configure(conf) ⇒ Object



44
45
46
47
48
49
50
51
52
53
# File 'lib/fluent/plugin/in_groonga.rb', line 44

def configure(conf)
  super
  case @protocol
  when :http
    @input = HTTPInput.new
  when :gqtp
    @input = GQTPInput.new
  end
  @input.configure(conf)
end

#shutdownObject



59
60
61
# File 'lib/fluent/plugin/in_groonga.rb', line 59

def shutdown
  @input.shutdown
end

#startObject



55
56
57
# File 'lib/fluent/plugin/in_groonga.rb', line 55

def start
  @input.start
end