[Groonga-commit] droonga/droonga-engine at aaf8754 [master] Add skeleton of system.absorb-data command

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Apr 10 11:55:32 JST 2015


YUKI Hiroshi	2015-04-10 11:55:32 +0900 (Fri, 10 Apr 2015)

  New Revision: aaf875461219df76743052f7712ab18a5ae1be70
  https://github.com/droonga/droonga-engine/commit/aaf875461219df76743052f7712ab18a5ae1be70

  Message:
    Add skeleton of system.absorb-data command

  Copied files:
    lib/droonga/plugins/system/absorb_data.rb
      (from lib/droonga/plugins/system.rb)
  Modified files:
    lib/droonga/plugins/system.rb

  Modified: lib/droonga/plugins/system.rb (+1 -0)
===================================================================
--- lib/droonga/plugins/system.rb    2015-04-10 11:34:08 +0900 (4ded32f)
+++ lib/droonga/plugins/system.rb    2015-04-10 11:55:32 +0900 (55434d1)
@@ -25,3 +25,4 @@ module Droonga
 end
 
 require "droonga/plugins/system/status"
+require "droonga/plugins/system/absorb_data"

  Copied: lib/droonga/plugins/system/absorb_data.rb (+14 -5) 68%
===================================================================
--- lib/droonga/plugins/system.rb    2015-04-10 11:34:08 +0900 (4ded32f)
+++ lib/droonga/plugins/system/absorb_data.rb    2015-04-10 11:55:32 +0900 (ba2c6c0)
@@ -1,4 +1,4 @@
-# Copyright (C) 2013-2015 Droonga Project
+# Copyright (C) 2015 Droonga Project
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -18,10 +18,19 @@ require "droonga/plugin"
 module Droonga
   module Plugins
     module System
-      extend Plugin
-      register("system")
+      class AbsorbDataHandler < Droonga::Handler
+        action.synchronous = true
+
+        def handle(message)
+          true
+        end
+      end
+
+      define_single_step do |step|
+        step.name = "system.absorb-data"
+        step.handler = AbsorbDataHandler
+        step.collector = Collectors::Or
+      end
     end
   end
 end
-
-require "droonga/plugins/system/status"
-------------- next part --------------
HTML����������������������������...
Download 



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