Class: Aerospike::NodeValidator

Inherits:
Object
  • Object
show all
Defined in:
lib/aerospike/node_validator.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#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

Instance Attribute Details

#aliasesObject (readonly)

Returns the value of attribute aliases.



23
24
25
# File 'lib/aerospike/node_validator.rb', line 23

def aliases
  @aliases
end

#cluster_nameObject (readonly)

Returns the value of attribute cluster_name.



23
24
25
# File 'lib/aerospike/node_validator.rb', line 23

def cluster_name
  @cluster_name
end

#connObject (readonly)

Returns the value of attribute conn.



23
24
25
# File 'lib/aerospike/node_validator.rb', line 23

def conn
  @conn
end

#featuresObject (readonly)

Returns the value of attribute features.



23
24
25
# File 'lib/aerospike/node_validator.rb', line 23

def features
  @features
end

#hostObject (readonly)

Returns the value of attribute host.



23
24
25
# File 'lib/aerospike/node_validator.rb', line 23

def host
  @host
end

#nameObject (readonly)

Returns the value of attribute name.



23
24
25
# File 'lib/aerospike/node_validator.rb', line 23

def name
  @name
end

#tls_optionsObject (readonly)

Returns the value of attribute tls_options.



23
24
25
# File 'lib/aerospike/node_validator.rb', line 23

def tls_options
  @tls_options
end