Class: Aerospike::NodeValidator
- Inherits:
-
Object
- Object
- Aerospike::NodeValidator
- 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
-
#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.
-
#ssl_options ⇒ Object
readonly
Returns the value of attribute ssl_options.
-
#use_new_info ⇒ Object
readonly
Returns the value of attribute use_new_info.
Instance Method Summary collapse
-
#initialize(cluster, host, timeout, cluster_name, ssl_options = {}) ⇒ NodeValidator
constructor
A new instance of NodeValidator.
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, = {}) @cluster = cluster @use_new_info = true @features = Set.new @host = host @cluster_name = cluster_name = set_aliases(host) set_address(timeout) end |
Instance Attribute Details
#aliases ⇒ Object (readonly)
Returns the value of attribute aliases.
24 25 26 |
# File 'lib/aerospike/node_validator.rb', line 24 def aliases @aliases end |
#cluster_name ⇒ Object (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 |
#conn ⇒ Object (readonly)
Returns the value of attribute conn.
24 25 26 |
# File 'lib/aerospike/node_validator.rb', line 24 def conn @conn end |
#features ⇒ Object (readonly)
Returns the value of attribute features.
24 25 26 |
# File 'lib/aerospike/node_validator.rb', line 24 def features @features end |
#host ⇒ Object (readonly)
Returns the value of attribute host.
24 25 26 |
# File 'lib/aerospike/node_validator.rb', line 24 def host @host end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
24 25 26 |
# File 'lib/aerospike/node_validator.rb', line 24 def name @name end |
#ssl_options ⇒ Object (readonly)
Returns the value of attribute ssl_options.
24 25 26 |
# File 'lib/aerospike/node_validator.rb', line 24 def end |
#use_new_info ⇒ Object (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 |