Module: ElasticSearch::Transport::ClusterAdminProtocol
- Included in:
- BaseProtocol
- Defined in:
- lib/elasticsearch/transport/base_protocol.rb
Instance Method Summary collapse
- #cluster_health(index_list, options = {}) ⇒ Object
- #cluster_state(options = {}) ⇒ Object
- #nodes_info(node_list, options = {}) ⇒ Object
- #nodes_stats(node_list, options = {}) ⇒ Object
- #restart_nodes(node_list, options = {}) ⇒ Object
- #shutdown_nodes(node_list, options = {}) ⇒ Object
Instance Method Details
#cluster_health(index_list, options = {}) ⇒ Object
186 187 188 |
# File 'lib/elasticsearch/transport/base_protocol.rb', line 186 def cluster_health(index_list, ={}) standard_request(:get, {:index => "_cluster", :type => "health", :id => index_list}, ) end |
#cluster_state(options = {}) ⇒ Object
190 191 192 |
# File 'lib/elasticsearch/transport/base_protocol.rb', line 190 def cluster_state(={}) standard_request(:get, {:index => "_cluster", :op => "state"}) end |
#nodes_info(node_list, options = {}) ⇒ Object
194 195 196 |
# File 'lib/elasticsearch/transport/base_protocol.rb', line 194 def nodes_info(node_list, ={}) standard_request(:get, {:index => "_cluster", :type => "nodes", :id => node_list}) end |
#nodes_stats(node_list, options = {}) ⇒ Object
198 199 200 |
# File 'lib/elasticsearch/transport/base_protocol.rb', line 198 def nodes_stats(node_list, ={}) standard_request(:get, {:index => "_cluster", :type => "nodes", :id => node_list, :op => "stats"}) end |
#restart_nodes(node_list, options = {}) ⇒ Object
206 207 208 |
# File 'lib/elasticsearch/transport/base_protocol.rb', line 206 def restart_nodes(node_list, ={}) standard_request(:post, {:index => "_cluster", :type => "nodes", :id => node_list, :op => "_restart"}, , "") end |
#shutdown_nodes(node_list, options = {}) ⇒ Object
202 203 204 |
# File 'lib/elasticsearch/transport/base_protocol.rb', line 202 def shutdown_nodes(node_list, ={}) standard_request(:post, {:index => "_cluster", :type => "nodes", :id => node_list, :op => "_shutdown"}, , "") end |