Module: Aerospike::Peers::Fetch

Defined in:
lib/aerospike/peers/fetch.rb

Class Method Summary collapse

Class Method Details

.call(cluster, conn) ⇒ Object



24
25
26
27
28
29
30
31
32
# File 'lib/aerospike/peers/fetch.rb', line 24

def call(cluster, conn)
  cmd = cluster.tls_enabled? ? 'peers-tls-std' : 'peers-clear-std'

  response = Info.request(conn, cmd)

  raise if response.size.zero?

  ::Aerospike::Peers::Parse.(response.fetch(cmd))
end