Class: Aerospike::NodeValidator
- Inherits:
-
Object
- Object
- Aerospike::NodeValidator
- Defined in:
- lib/aerospike/node_validator.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#aliases ⇒ Object
readonly
Returns the value of attribute aliases.
-
#cluster_name ⇒ Object
readonly
Returns the value of attribute cluster_name.
-
#conn ⇒ Object
readonly
Returns the value of attribute conn.
-
#features ⇒ Object
readonly
Returns the value of attribute features.
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#tls_options ⇒ Object
readonly
Returns the value of attribute tls_options.
Instance Method Summary collapse
-
#initialize(cluster, host, timeout, cluster_name, tls_options = {}) ⇒ NodeValidator
constructor
A new instance of NodeValidator.
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, = {}) @cluster = cluster @features = Set.new @host = host @cluster_name = cluster_name @tls_options = @aliases = [] resolve(host.name).each do |address| @aliases += get_hosts(address) end end |
Instance Attribute Details
#aliases ⇒ Object (readonly)
Returns the value of attribute aliases.
23 24 25 |
# File 'lib/aerospike/node_validator.rb', line 23 def aliases @aliases end |
#cluster_name ⇒ Object (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 |
#conn ⇒ Object (readonly)
Returns the value of attribute conn.
23 24 25 |
# File 'lib/aerospike/node_validator.rb', line 23 def conn @conn end |
#features ⇒ Object (readonly)
Returns the value of attribute features.
23 24 25 |
# File 'lib/aerospike/node_validator.rb', line 23 def features @features end |
#host ⇒ Object (readonly)
Returns the value of attribute host.
23 24 25 |
# File 'lib/aerospike/node_validator.rb', line 23 def host @host end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
23 24 25 |
# File 'lib/aerospike/node_validator.rb', line 23 def name @name end |
#tls_options ⇒ Object (readonly)
Returns the value of attribute tls_options.
23 24 25 |
# File 'lib/aerospike/node_validator.rb', line 23 def @tls_options end |