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, #distribute, #initialize, #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(message) ⇒ Object



41
42
43
# File 'lib/droonga/plugin/distributor/groonga.rb', line 41

def column_create(message)
  broadcast_all(message)
end

#table_create(message) ⇒ Object



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

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

#table_remove(message) ⇒ Object



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

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