Class: Droonga::Command::Remote::Base
- Inherits:
-
Object
- Object
- Droonga::Command::Remote::Base
- Defined in:
- lib/droonga/command/remote.rb
Direct Known Subclasses
AbsorbData, ChangeRole, Join, ModifyReplicasBase, ReportStatus, SetStatus, UpdateLiveNodes
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(serf_name, params) ⇒ Base
constructor
A new instance of Base.
- #process ⇒ Object
- #should_process? ⇒ Boolean
Constructor Details
#initialize(serf_name, params) ⇒ Base
Returns a new instance of Base.
34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/droonga/command/remote.rb', line 34 def initialize(serf_name, params) @serf_name = serf_name @params = params @response = { "log" => [] } @serf = Serf.new(nil, @serf_name) @service_installation = ServiceInstallation.new @service_installation.ensure_using_service_base_directory log("params = #{params}") end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
32 33 34 |
# File 'lib/droonga/command/remote.rb', line 32 def response @response end |
Instance Method Details
#process ⇒ Object
48 49 50 |
# File 'lib/droonga/command/remote.rb', line 48 def process # override me! end |
#should_process? ⇒ Boolean
52 53 54 |
# File 'lib/droonga/command/remote.rb', line 52 def should_process? for_me? or @params.nil? or not @params.include?("node") end |