class Elasticsearch::Model::Node

Public Instance Methods

count_initializing_shards() click to toggle source
# File lib/elasticsearch/model/node.rb, line 38
def count_initializing_shards
  shards.select { |s| s.state.upcase == 'INITIALIZING' }.length
end
count_relocating_shards() click to toggle source
# File lib/elasticsearch/model/node.rb, line 42
def count_relocating_shards
  shards.select { |s| s.state.upcase == 'RELOCATING' }.length
end
count_started_shards() click to toggle source
# File lib/elasticsearch/model/node.rb, line 46
def count_started_shards
  shards.select { |s| s.state.upcase == 'STARTED' }.length
end