Class: Droonga::Engine

Inherits:
Object
  • Object
show all
Defined in:
lib/droonga/engine.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Engine

Returns a new instance of Engine.



23
24
25
26
# File 'lib/droonga/engine.rb', line 23

def initialize(options={})
  @options = options
  @dispatcher = Dispatcher.new(@options)
end

Instance Method Details

#process(envelope) ⇒ Object



38
39
40
# File 'lib/droonga/engine.rb', line 38

def process(envelope)
  @dispatcher.handle_envelope(envelope)
end

#shutdownObject



32
33
34
35
36
# File 'lib/droonga/engine.rb', line 32

def shutdown
  $log.trace("engine: shutdown: start")
  @dispatcher.shutdown
  $log.trace("engine: shutdown: done")
end

#startObject



28
29
30
# File 'lib/droonga/engine.rb', line 28

def start
  @dispatcher.start
end