YUKI Hiroshi
null+****@clear*****
Fri Apr 10 11:31:22 JST 2015
YUKI Hiroshi 2015-04-10 11:31:22 +0900 (Fri, 10 Apr 2015) New Revision: c1750277c23cd4bbcc420b10895ddd42f4560205 https://github.com/droonga/droonga-engine/commit/c1750277c23cd4bbcc420b10895ddd42f4560205 Message: Extract core implementation of system.status to separate file Copied files: lib/droonga/plugins/system/status.rb (from lib/droonga/plugins/system.rb) Modified files: lib/droonga/plugins/system.rb Modified: lib/droonga/plugins/system.rb (+3 -20) =================================================================== --- lib/droonga/plugins/system.rb 2015-04-09 15:38:07 +0900 (4bd5515) +++ lib/droonga/plugins/system.rb 2015-04-10 11:31:22 +0900 (4ded32f) @@ -1,4 +1,4 @@ -# Copyright (C) 2013-2014 Droonga Project +# Copyright (C) 2013-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 @@ -20,25 +20,8 @@ module Droonga module System extend Plugin register("system") - - class StatusHandler < Droonga::Handler - action.synchronous = true - - def handle(message) - engine_state =****@messe*****_state - reporter = "#{engine_state.internal_name} @ #{engine_state.name}" - { - "nodes" => @messenger.cluster.engine_nodes_status, - "reporter" => reporter, - } - end - end - - define_single_step do |step| - step.name = "system.status" - step.handler = StatusHandler - step.collector = Collectors::Or - end end end end + +require "droonga/plugins/system/status" Copied: lib/droonga/plugins/system/status.rb (+1 -4) 93% =================================================================== --- lib/droonga/plugins/system.rb 2015-04-09 15:38:07 +0900 (4bd5515) +++ lib/droonga/plugins/system/status.rb 2015-04-10 11:31:22 +0900 (3e5a9a3) @@ -1,4 +1,4 @@ -# Copyright (C) 2013-2014 Droonga Project +# Copyright (C) 2013-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,9 +18,6 @@ require "droonga/plugin" module Droonga module Plugins module System - extend Plugin - register("system") - class StatusHandler < Droonga::Handler action.synchronous = true -------------- next part -------------- HTML����������������������������...Descargar