Class: Droonga::Plugins::System::AbsorbDataHandler

Inherits:
AsyncCommand::Handler show all
Defined in:
lib/droonga/plugins/system/absorb_data.rb

Defined Under Namespace

Classes: DataAbsorber, MissingHostParameter

Constant Summary collapse

DEFAULT_MESSAGES_PER_SECOND =
100
DEFAULT_PROGRESS_INTERVAL_SECONDS =
3
MIN_PROGRESS_INTERVAL_SECONDS =
1

Instance Attribute Summary

Attributes inherited from Handler

#label, #loop, #messenger

Instance Method Summary collapse

Methods inherited from Handler

action, #initialize, message

Methods included from Droonga::Pluggable

#find_sub_classes, #options

Constructor Details

This class inherits a constructor from Droonga::Handler

Instance Method Details

#handle(message) ⇒ Object



383
384
385
386
387
388
# File 'lib/droonga/plugins/system/absorb_data.rb', line 383

def handle(message)
  unless message.request.include?("host")
    raise MissingHostParameter.new
  end
  super
end