Class: ElasticSearch::Node::Remote
- Inherits:
-
Object
- Object
- ElasticSearch::Node::Remote
- Includes:
- ClientProvider
- Defined in:
- lib/elasticsearch-node/remote.rb
Instance Attribute Summary collapse
-
#ip ⇒ Object
Returns the value of attribute ip.
-
#port ⇒ Object
Returns the value of attribute port.
Instance Method Summary collapse
- #close ⇒ Object
-
#initialize(port, ip) ⇒ Remote
constructor
A new instance of Remote.
Methods included from ClientProvider
Constructor Details
#initialize(port, ip) ⇒ Remote
Returns a new instance of Remote.
8 9 10 11 |
# File 'lib/elasticsearch-node/remote.rb', line 8 def initialize(port, ip) this.port = port this.ip = ip end |
Instance Attribute Details
#ip ⇒ Object
Returns the value of attribute ip.
6 7 8 |
# File 'lib/elasticsearch-node/remote.rb', line 6 def ip @ip end |
#port ⇒ Object
Returns the value of attribute port.
6 7 8 |
# File 'lib/elasticsearch-node/remote.rb', line 6 def port @port end |
Instance Method Details
#close ⇒ Object
17 18 19 |
# File 'lib/elasticsearch-node/remote.rb', line 17 def close raise "Remote Nodes cannot be closed directly, please use a shutdown request" end |