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



112
113
114
# File 'lib/elasticsearch/transport/base_protocol.rb', line 112

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

#cluster_state(options = {}) ⇒ Object



116
117
118
# File 'lib/elasticsearch/transport/base_protocol.rb', line 116

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

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



120
121
122
# File 'lib/elasticsearch/transport/base_protocol.rb', line 120

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

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



124
125
126
# File 'lib/elasticsearch/transport/base_protocol.rb', line 124

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



132
133
134
# File 'lib/elasticsearch/transport/base_protocol.rb', line 132

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



128
129
130
# File 'lib/elasticsearch/transport/base_protocol.rb', line 128

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