Class: Aerospike::NodeValidator

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

Overview

:nodoc:

Constant Summary collapse

VERSION_REGEXP =
/(?<v1>\d+)\.(?<v2>\d+)\.(?<v3>\d+).*/.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of NodeValidator.



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

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

  set_aliases(host)
  set_address(timeout)
end

Instance Attribute Details

#aliasesObject (readonly)

Returns the value of attribute aliases.



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

def aliases
  @aliases
end

#cluster_nameObject (readonly)

Returns the value of attribute cluster_name.



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

def cluster_name
  @cluster_name
end

#connObject (readonly)

Returns the value of attribute conn.



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

def conn
  @conn
end

#featuresObject (readonly)

Returns the value of attribute features.



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

def features
  @features
end

#hostObject (readonly)

Returns the value of attribute host.



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

def host
  @host
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#ssl_optionsObject (readonly)

Returns the value of attribute ssl_options.



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

def ssl_options
  @ssl_options
end

#use_new_infoObject (readonly)

Returns the value of attribute use_new_info.



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

def use_new_info
  @use_new_info
end