module ElasticSearch::Transport::ClusterAdminProtocol

Public Instance Methods

cluster_health(index_list, options={}) click to toggle source
# 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={}) click to toggle source
# 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={}) click to toggle source
# 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={}) click to toggle source
# 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={}) click to toggle source
# 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={}) click to toggle source
# 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