Sha256: 893f9adeb7b9b05b7f357dc7eb4124b0b8d680ab51badc1ee8024c1cfb7c1dca

Contents?: true

Size: 358 Bytes

Versions: 15

Compression:

Stored size: 358 Bytes

Contents

# encoding: utf-8

require_relative 'common'


cluster = Eurydice.connect

# List the keyspaces
puts 'Keyspaces:'
cluster.keyspaces.each_with_index do |keyspace_name, i|
  puts "#{i + 1}: #{keyspace_name}"
end

puts '---'

# List the nodes in the cluster
puts 'Nodes:'
cluster.nodes.each_with_index do |node_address, i|
  puts "#{i + 1}: #{node_address}"
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
eurydice-1.2.6-java examples/06_cluster_info.rb
eurydice-1.2.5-java examples/06_cluster_info.rb
eurydice-1.2.4-java examples/06_cluster_info.rb
eurydice-1.2.3-java examples/06_cluster_info.rb
eurydice-1.2.2-java examples/06_cluster_info.rb
eurydice-1.2.1-java examples/06_cluster_info.rb
eurydice-1.2.0-java examples/06_cluster_info.rb
eurydice-1.1.1.b1-java examples/06_cluster_info.rb
eurydice-1.1.0.b4-java examples/06_cluster_info.rb
eurydice-1.1.0.b3-java examples/06_cluster_info.rb
eurydice-1.1.0.b2-java examples/06_cluster_info.rb
eurydice-1.0.3-java examples/06_cluster_info.rb
eurydice-1.0.2-java examples/06_cluster_info.rb
eurydice-1.0.1-java examples/06_cluster_info.rb
eurydice-1.0.0-java examples/06_cluster_info.rb