[Groonga-commit] droonga/fluent-plugin-droonga at 0983e9f [master] Acquire "handler" name

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Nov 24 11:14:32 JST 2013


Kouhei Sutou	2013-11-24 11:14:32 +0900 (Sun, 24 Nov 2013)

  New Revision: 0983e9f025d198afb9ad3051b75e3101f7d0934f
  https://github.com/droonga/fluent-plugin-droonga/commit/0983e9f025d198afb9ad3051b75e3101f7d0934f

  Message:
    Acquire "handler" name

  Modified files:
    lib/droonga/adapter.rb
    lib/droonga/collector.rb
    lib/droonga/dispatcher.rb
    lib/droonga/plugin/handler/add.rb
    lib/droonga/plugin/handler/collector.rb
    lib/droonga/plugin/handler/forward.rb
    lib/droonga/plugin/handler/groonga.rb
    lib/droonga/plugin/handler/search.rb
    lib/droonga/plugin/handler/watch.rb
  Renamed files:
    lib/droonga/legacy_plugin.rb
      (from lib/droonga/handler.rb)

  Modified: lib/droonga/adapter.rb (+2 -2)
===================================================================
--- lib/droonga/adapter.rb    2013-11-24 08:50:39 +0900 (955462f)
+++ lib/droonga/adapter.rb    2013-11-24 11:14:32 +0900 (e4cc57a)
@@ -15,10 +15,10 @@
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
-require "droonga/handler"
+require "droonga/legacy_plugin"
 
 module Droonga
-  class Adapter < Droonga::Handler
+  class Adapter < Droonga::LegacyPlugin
     def scatter_all(request, key)
       message = [{
         "command"=> envelope["type"],

  Modified: lib/droonga/collector.rb (+2 -2)
===================================================================
--- lib/droonga/collector.rb    2013-11-24 08:50:39 +0900 (839648a)
+++ lib/droonga/collector.rb    2013-11-24 11:14:32 +0900 (7f9a4df)
@@ -15,7 +15,7 @@
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
-require "droonga/handler"
+require "droonga/legacy_plugin"
 
 module Droonga
   class Collector
@@ -89,7 +89,7 @@ module Droonga
     end
   end
 
-  class CollectorHandler < Droonga::Handler
+  class CollectorHandler < Droonga::LegacyPlugin
     attr_reader :task, :input_name, :component, :output_values, :body, :output_names
     def handle(command, request, *arguments)
       return false unless request.is_a? Hash

  Modified: lib/droonga/dispatcher.rb (+2 -2)
===================================================================
--- lib/droonga/dispatcher.rb    2013-11-24 08:50:39 +0900 (5683742)
+++ lib/droonga/dispatcher.rb    2013-11-24 11:14:32 +0900 (9867b91)
@@ -16,7 +16,7 @@
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
 require 'tsort'
-require "droonga/handler"
+require "droonga/legacy_plugin"
 require "droonga/adapter"
 require "droonga/catalog"
 require "droonga/collector"
@@ -247,7 +247,7 @@ module Droonga
     end
   end
 
-  class DispatcherMessageHandler < Droonga::Handler
+  class DispatcherMessageHandler < Droonga::LegacyPlugin
     Droonga::HandlerPlugin.repository.register("dispatcher_message", self)
     def initialize(*arguments)
       super

  Renamed: lib/droonga/legacy_plugin.rb (+1 -1) 99%
===================================================================
--- lib/droonga/handler.rb    2013-11-24 08:50:39 +0900 (ec9b74c)
+++ lib/droonga/legacy_plugin.rb    2013-11-24 11:14:32 +0900 (287f211)
@@ -20,7 +20,7 @@ require "droonga/command_mapper"
 require "droonga/logger"
 
 module Droonga
-  class Handler
+  class LegacyPlugin
     class << self
       def inherited(sub_class)
         super

  Modified: lib/droonga/plugin/handler/add.rb (+2 -2)
===================================================================
--- lib/droonga/plugin/handler/add.rb    2013-11-24 08:50:39 +0900 (ea64921)
+++ lib/droonga/plugin/handler/add.rb    2013-11-24 11:14:32 +0900 (0512213)
@@ -17,10 +17,10 @@
 
 require "groonga"
 
-require "droonga/handler"
+require "droonga/legacy_plugin"
 
 module Droonga
-  class AddHandler < Droonga::Handler
+  class AddHandler < Droonga::LegacyPlugin
     Droonga::HandlerPlugin.repository.register("add", self)
 
     command :add

  Modified: lib/droonga/plugin/handler/collector.rb (+1 -1)
===================================================================
--- lib/droonga/plugin/handler/collector.rb    2013-11-24 08:50:39 +0900 (9dd4fb2)
+++ lib/droonga/plugin/handler/collector.rb    2013-11-24 11:14:32 +0900 (e38963e)
@@ -15,7 +15,7 @@
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
-require "droonga/handler"
+require "droonga/legacy_plugin"
 require "droonga/searcher"
 
 module Droonga

  Modified: lib/droonga/plugin/handler/forward.rb (+2 -2)
===================================================================
--- lib/droonga/plugin/handler/forward.rb    2013-11-24 08:50:39 +0900 (8b047c0)
+++ lib/droonga/plugin/handler/forward.rb    2013-11-24 11:14:32 +0900 (f2fb970)
@@ -15,11 +15,11 @@
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
-require "droonga/handler"
+require "droonga/legacy_plugin"
 require "droonga/logger"
 
 module Droonga
-  class MergeHandler < Droonga::Handler
+  class MergeHandler < Droonga::LegacyPlugin
     Droonga::HandlerPlugin.repository.register("forward", self)
 
     CONFIG_FILE_PATH = 'config.json'

  Modified: lib/droonga/plugin/handler/groonga.rb (+2 -2)
===================================================================
--- lib/droonga/plugin/handler/groonga.rb    2013-11-24 08:50:39 +0900 (6ddeb3c)
+++ lib/droonga/plugin/handler/groonga.rb    2013-11-24 11:14:32 +0900 (3ab57d6)
@@ -17,10 +17,10 @@
 
 require "groonga"
 
-require "droonga/handler"
+require "droonga/legacy_plugin"
 
 module Droonga
-  class GroongaHandler < Droonga::Handler
+  class GroongaHandler < Droonga::LegacyPlugin
     Droonga::HandlerPlugin.repository.register("groonga", self)
 
     command :table_create

  Modified: lib/droonga/plugin/handler/search.rb (+2 -2)
===================================================================
--- lib/droonga/plugin/handler/search.rb    2013-11-24 08:50:39 +0900 (e8964b3)
+++ lib/droonga/plugin/handler/search.rb    2013-11-24 11:14:32 +0900 (73562d1)
@@ -15,11 +15,11 @@
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
-require "droonga/handler"
+require "droonga/legacy_plugin"
 require "droonga/searcher"
 
 module Droonga
-  class SearchHandler < Droonga::Handler
+  class SearchHandler < Droonga::LegacyPlugin
     Droonga::HandlerPlugin.repository.register("search", self)
 
     command :search

  Modified: lib/droonga/plugin/handler/watch.rb (+2 -2)
===================================================================
--- lib/droonga/plugin/handler/watch.rb    2013-11-24 08:50:39 +0900 (1ba661c)
+++ lib/droonga/plugin/handler/watch.rb    2013-11-24 11:14:32 +0900 (eddfd88)
@@ -18,10 +18,10 @@
 require "droonga/watcher"
 require "droonga/sweeper"
 require "droonga/watch_schema"
-require "droonga/handler"
+require "droonga/legacy_plugin"
 
 module Droonga
-  class WatchHandler < Droonga::Handler
+  class WatchHandler < Droonga::LegacyPlugin
     Droonga::HandlerPlugin.repository.register("watch", self)
 
     def initialize(*args)
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index