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
184 185 186 |
# File 'lib/elasticsearch/transport/base_protocol.rb', line 184 def cluster_health(index_list, ={}) standard_request(:get, {:index => "_cluster", :type => "health", :id => index_list}, ) end |
#cluster_state(options = {}) ⇒ Object
188 189 190 |
# File 'lib/elasticsearch/transport/base_protocol.rb', line 188 def cluster_state(={}) 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, ={}) 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, ={}) 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, ={}) standard_request(:post, {:index => "_cluster", :type => "nodes", :id => node_list, :op => "_restart"}, , "") end |
#shutdown_nodes(node_list, options = {}) ⇒ Object
200 201 202 |
# File 'lib/elasticsearch/transport/base_protocol.rb', line 200 def shutdown_nodes(node_list, ={}) standard_request(:post, {:index => "_cluster", :type => "nodes", :id => node_list, :op => "_shutdown"}, , "") end |