elasticsearch-extensions/lib/elasticsearch/extensions/test/cluster.rb
def __get_cluster_health(port=9250)
          uri = URI("http://localhost:#{port}/_cluster/health")
          if response = Net::HTTP.get(uri) rescue nil
            return JSON.parse(response)
          end
        end
# Tries to load cluster health information
#
# @api private
#
Tries to load cluster health information
Tries to load cluster health information
def __get_cluster_health(port=9250)
          uri = URI("http://localhost:#{port}/_cluster/health")
          if response = Net::HTTP.get(uri) rescue nil
            return JSON.parse(response)
          end
        end
def __get_cluster_health ( port = 9250 ) uri = URI ( "http://localhost:#{port}/_cluster/health" ) if response = Net :: HTTP . get ( uri ) rescue nil return JSON . parse ( response ) end end
Tries to load cluster health information
Tries to load cluster health information
port
api
None