Class: Droonga::Engine
- Inherits:
-
Object
- Object
- Droonga::Engine
- Includes:
- Loggable
- Defined in:
- lib/droonga/engine.rb
Instance Method Summary collapse
-
#initialize(catalog, options = {}) ⇒ Engine
constructor
A new instance of Engine.
- #process(message) ⇒ Object
- #shutdown ⇒ Object
- #start ⇒ Object
Constructor Details
#initialize(catalog, options = {}) ⇒ Engine
Returns a new instance of Engine.
25 26 27 28 29 |
# File 'lib/droonga/engine.rb', line 25 def initialize(catalog, ={}) @catalog = catalog = @dispatcher = Dispatcher.new(@catalog, ) end |
Instance Method Details
#process(message) ⇒ Object
41 42 43 |
# File 'lib/droonga/engine.rb', line 41 def process() @dispatcher.() end |
#shutdown ⇒ Object
35 36 37 38 39 |
# File 'lib/droonga/engine.rb', line 35 def shutdown logger.trace("shutdown: start") @dispatcher.shutdown logger.trace("shutdown: done") end |
#start ⇒ Object
31 32 33 |
# File 'lib/droonga/engine.rb', line 31 def start @dispatcher.start end |