Method: Aerospike::NodeValidator#initialize

Defined in:
lib/aerospike/node_validator.rb

#initialize(cluster, host, timeout, cluster_name, tls_options = {}) ⇒ NodeValidator

Returns a new instance of NodeValidator.



25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/aerospike/node_validator.rb', line 25

def initialize(cluster, host, timeout, cluster_name, tls_options = {})
  @cluster = cluster
  @features = Set.new
  @host = host
  @cluster_name = cluster_name
  @tls_options = tls_options

  @aliases = []

  resolve(host.name).each do |address|
    @aliases += get_hosts(address)
  end
end