YUKI Hiroshi
null+****@clear*****
Tue Apr 21 16:01:43 JST 2015
YUKI Hiroshi 2015-04-21 16:01:43 +0900 (Tue, 21 Apr 2015) New Revision: b3192cca68b0451325f949e719f7799916ee8cf2 https://github.com/droonga/droonga-engine/commit/b3192cca68b0451325f949e719f7799916ee8cf2 Message: Move implementation of remote commands under lib/droonga/serf Modified files: lib/droonga/command/serf_event_handler.rb Renamed files: lib/droonga/serf/remote_command.rb (from lib/droonga/command/remote.rb) Modified: lib/droonga/command/serf_event_handler.rb (+9 -9) =================================================================== --- lib/droonga/command/serf_event_handler.rb 2015-04-21 15:57:16 +0900 (e5ea935) +++ lib/droonga/command/serf_event_handler.rb 2015-04-21 16:01:43 +0900 (95cca6f) @@ -16,7 +16,7 @@ require "json" require "fileutils" -require "droonga/command/remote" +require "droonga/serf/remote_command" module Droonga module Command @@ -72,7 +72,7 @@ module Droonga @payload = JSON.parse($stdin.gets) detect_command_class_from_custom_event(ENV["SERF_QUERY_NAME"]) when "member-join", "member-leave", "member-update", "member-reap" - Remote::UpdateClusterState + Serf::RemtoeCommand::UpdateClusterState else nil end @@ -81,19 +81,19 @@ module Droonga def detect_command_class_from_custom_event(event_name) case event_name when "change_role" - Remote::ChangeRole + Serf::RemtoeCommand::ChangeRole when "accept_messages_newer_than" - Remote::AcceptMessagesNewerThan + Serf::RemtoeCommand::AcceptMessagesNewerThan when "join" - Remote::Join + Serf::RemtoeCommand::Join when "unjoin" - Remote::Unjoin + Serf::RemtoeCommand::Unjoin when "set_replicas" - Remote::SetReplicas + Serf::RemtoeCommand::SetReplicas when "add_replicas" - Remote::AddReplicas + Serf::RemtoeCommand::AddReplicas when "remove_replicas" - Remote::RemoveReplicas + Serf::RemtoeCommand::RemoveReplicas else nil end Renamed: lib/droonga/serf/remote_command.rb (+2 -2) 99% =================================================================== --- lib/droonga/command/remote.rb 2015-04-21 15:57:16 +0900 (f0443bf) +++ lib/droonga/serf/remote_command.rb 2015-04-21 16:01:43 +0900 (7db3cad) @@ -26,8 +26,8 @@ require "droonga/service_installation" require "droonga/restarter" module Droonga - module Command - module Remote + module Serf + module RemoteCommand class Base attr_reader :response -------------- next part -------------- HTML����������������������������...Download