Module: ElasticSearch::Transport::ClusterAdminProtocol

Included in:
BaseProtocol
Defined in:
lib/elasticsearch/transport/base_protocol.rb

Instance Method Summary collapse

Instance Method Details

#cluster_health(index_list, options = {}) ⇒ Object



184
185
186
# File 'lib/elasticsearch/transport/base_protocol.rb', line 184

def cluster_health(index_list, options={})
  standard_request(:get, {:index => "_cluster", :type => "health", :id => index_list}, options)
end

#cluster_state(options = {}) ⇒ Object



188
189
190
# File 'lib/elasticsearch/transport/base_protocol.rb', line 188

def cluster_state(options={})
  standard_request(:get, {:index => "_cluster", :op => "state"})
end

#nodes_info(node_list, options = {}) ⇒ Object



192
193
194
# File 'lib/elasticsearch/transport/base_protocol.rb', line 192

def nodes_info(node_list, options={})
  standard_request(:get, {:index => "_cluster", :type => "nodes", :id => node_list})
end

#nodes_stats(node_list, options = {}) ⇒ Object



196
197
198
# File 'lib/elasticsearch/transport/base_protocol.rb', line 196

def nodes_stats(node_list, options={})
  standard_request(:get, {:index => "_cluster", :type => "nodes", :id => node_list, :op => "stats"})
end

#restart_nodes(node_list, options = {}) ⇒ Object



204
205
206
# File 'lib/elasticsearch/transport/base_protocol.rb', line 204

def restart_nodes(node_list, options={})
  standard_request(:post, {:index => "_cluster", :type => "nodes", :id => node_list, :op =>  "_restart"}, options, "")
end

#shutdown_nodes(node_list, options = {}) ⇒ Object



200
201
202
# File 'lib/elasticsearch/transport/base_protocol.rb', line 200

def shutdown_nodes(node_list, options={})
  standard_request(:post, {:index => "_cluster", :type => "nodes", :id => node_list, :op => "_shutdown"}, options, "")
end