Class: Droonga::GroongaDistributor

Inherits:
DistributorPlugin show all
Defined in:
lib/droonga/plugin/distributor/groonga.rb

Instance Method Summary collapse

Methods inherited from DistributorPlugin

#broadcast_all, #initialize, #post, #scatter_all

Methods included from PluginRegisterable

#command, extended, #inherited, #method_name, #processable?, #repository

Methods inherited from Plugin

#initialize, #process, #processable?, #shutdown, #start

Constructor Details

This class inherits a constructor from Droonga::DistributorPlugin

Instance Method Details

#column_create(envelope) ⇒ Object



33
34
35
# File 'lib/droonga/plugin/distributor/groonga.rb', line 33

def column_create(envelope)
  broadcast_all(envelope)
end

#table_create(envelope) ⇒ Object



25
26
27
28
29
30
# File 'lib/droonga/plugin/distributor/groonga.rb', line 25

def table_create(envelope)
  unless envelope["dataset"]
    raise "dataset must be set. FIXME: This error should return client."
  end
  broadcast_all(envelope)
end