Class: ElasticSearch::Transport::Base
- Inherits:
-
Object
- Object
- ElasticSearch::Transport::Base
- Includes:
- BaseProtocol
- Defined in:
- lib/elasticsearch/transport/base.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
-
#server ⇒ Object
Returns the value of attribute server.
Instance Method Summary collapse
- #all_nodes ⇒ Object
- #close ⇒ Object
- #connect! ⇒ Object
- #encoder ⇒ Object
-
#initialize(server, options = {}) ⇒ Base
constructor
A new instance of Base.
- #request(method, operation, params = {}, body = nil) ⇒ Object
Methods included from ClusterAdminProtocol
#cluster_health, #cluster_state, #nodes_info, #nodes_stats, #restart_nodes, #shutdown_nodes
Methods included from IndexAdminProtocol
#alias_index, #create_index, #create_river, #delete_index, #delete_mapping, #delete_river, #flush, #get_aliases, #get_river, #get_settings, #index_mapping, #index_status, #optimize, #refresh, #river_status, #snapshot, #update_mapping, #update_settings
Methods included from IndexProtocol
#bulk, #count, #delete, #delete_by_query, #get, #index, #multi_get, #scroll, #search
Constructor Details
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
14 15 16 |
# File 'lib/elasticsearch/transport/base.rb', line 14 def @options end |
#server ⇒ Object
Returns the value of attribute server.
14 15 16 |
# File 'lib/elasticsearch/transport/base.rb', line 14 def server @server end |
Instance Method Details
#all_nodes ⇒ Object
32 33 34 |
# File 'lib/elasticsearch/transport/base.rb', line 32 def all_nodes raise NotImplementedError end |
#close ⇒ Object
25 26 |
# File 'lib/elasticsearch/transport/base.rb', line 25 def close end |
#connect! ⇒ Object
21 22 23 |
# File 'lib/elasticsearch/transport/base.rb', line 21 def connect! raise NotImplementedError end |
#encoder ⇒ Object
28 29 30 |
# File 'lib/elasticsearch/transport/base.rb', line 28 def encoder @encoder ||= @options[:encoder].new end |
#request(method, operation, params = {}, body = nil) ⇒ Object
36 37 38 |
# File 'lib/elasticsearch/transport/base.rb', line 36 def request(method, operation, params={}, body=nil) raise NotImplementedError end |