Class: Droonga::Engine
- Inherits:
-
Object
- Object
- Droonga::Engine
- Defined in:
- lib/droonga/engine.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Engine
constructor
A new instance of Engine.
- #process(envelope) ⇒ Object
- #shutdown ⇒ Object
- #start ⇒ Object
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 = @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 |
#shutdown ⇒ Object
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 |
#start ⇒ Object
28 29 30 |
# File 'lib/droonga/engine.rb', line 28 def start @dispatcher.start end |