YUKI Hiroshi
null+****@clear*****
Fri Apr 10 12:38:19 JST 2015
YUKI Hiroshi 2015-04-10 12:38:19 +0900 (Fri, 10 Apr 2015) New Revision: 930b1b2a616e5dab3e0b472034938a363f0e1235 https://github.com/droonga/droonga-engine/commit/930b1b2a616e5dab3e0b472034938a363f0e1235 Message: Split the implementation of "system.status" to small methods Modified files: lib/droonga/plugins/system/status.rb Modified: lib/droonga/plugins/system/status.rb (+14 -3) =================================================================== --- lib/droonga/plugins/system/status.rb 2015-04-10 11:58:04 +0900 (3e5a9a3) +++ lib/droonga/plugins/system/status.rb 2015-04-10 12:38:19 +0900 (29b22ce) @@ -22,13 +22,24 @@ module Droonga action.synchronous = true def handle(message) - engine_state =****@messe*****_state - reporter = "#{engine_state.internal_name} @ #{engine_state.name}" { - "nodes" => @messenger.cluster.engine_nodes_status, + "nodes" => cluster.engine_nodes_status, "reporter" => reporter, } end + + private + def cluster + @messenger.cluster + end + + def reporter + "#{engine_state.internal_name} @ #{engine_state.name}" + end + + def engine_state + @messenger.engine_state + end end define_single_step do |step| -------------- next part -------------- HTML����������������������������... Download