Sha256: ab3960fc0324f5cc247c5a3efb0fa9711890b20ff7cdd0c0654c9d389919a03c
Contents?: true
Size: 1.38 KB
Versions: 1
Compression:
Stored size: 1.38 KB
Contents
# encoding: UTF-8 module Esearch # Handle for an elasticsearch cluster class Cluster PATH = Pathname.new('/').freeze include Adamantium::Flat, Concord.new(:connection) # Return connection # # @return [Connection] # # @api private # attr_reader :connection # Return handler for index # # @param [String] name # # @return [Index] # # @api private # def index(name) Index.new(connection, name) end # Return handler for indices # # @param [Enumerable<String>] names # # @return [Indices] # # @api private # def indices(names) Indices.new(connection, names) end # Return cluster health # # @param [Hash] options # # @return [Presenter::Health] # # @api private # def health(options = {}) Command::Cluster::Health.run(self, options) end # Return path # # @return [Pathname] # # @api private # def path PATH end # Return handler for all indices # # @return [Indices::All] # # @api private # def all_indices Indices::All.new(connection) end memoize :all_indices # Build connection # # @return [Connection] # # @api private # def self.connect(*args) new(Connection.build(*args)) end end # Cluster end # Esearch
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
esearch-0.2.2 | lib/esearch/cluster.rb |