Class: ElasticSearch::Node::Remote

Inherits:
Object
  • Object
show all
Includes:
ClientProvider
Defined in:
lib/elasticsearch-node/remote.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ClientProvider

included

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

#ipObject

Returns the value of attribute ip.



6
7
8
# File 'lib/elasticsearch-node/remote.rb', line 6

def ip
  @ip
end

#portObject

Returns the value of attribute port.



6
7
8
# File 'lib/elasticsearch-node/remote.rb', line 6

def port
  @port
end

Instance Method Details

#closeObject



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