Sha256: f7cdccba22f89fed733b7838c29fb04681b7e9dd1707b27dfb38e9ced3be39d6

Contents?: true

Size: 353 Bytes

Versions: 62

Compression:

Stored size: 353 Bytes

Contents

require 'rubygems'
require 'zookeeper'
z = Zookeeper.new("localhost:2181")
path = "/testing_node"
z.get(:path => path)
z.create(:path => path, :data => "initial value", :ephemeral => true)
z.get(:path => path)
z.close()
sleep 5
begin
  z.get(:path => path)
rescue Exception => e
  puts "Rescued exception #{e.inspect}"
end
z.reopen
z.get(:path => path)

Version data entries

62 entries across 62 versions & 2 rubygems

Version Path
zookeeper-0.9.4 test/test_close.rb
zookeeper-0.9.4-java test/test_close.rb
slyphon-zookeeper-0.9.4 test/test_close.rb
slyphon-zookeeper-0.9.4-java test/test_close.rb
slyphon-zookeeper-0.9.3 test/test_close.rb
slyphon-zookeeper-0.9.3-java test/test_close.rb
zookeeper-0.9.3 test/test_close.rb
zookeeper-0.9.3-java test/test_close.rb
slyphon-zookeeper-0.9.2 test/test_close.rb
slyphon-zookeeper-0.9.2-java test/test_close.rb
slyphon-zookeeper-0.9.1 test/test_close.rb
slyphon-zookeeper-0.9.1-java test/test_close.rb
slyphon-zookeeper-0.8.4 test/test_close.rb
slyphon-zookeeper-0.8.4-java test/test_close.rb
slyphon-zookeeper-0.9.0 test/test_close.rb
slyphon-zookeeper-0.9.0-java test/test_close.rb
slyphon-zookeeper-0.8.3 test/test_close.rb
slyphon-zookeeper-0.8.3-java test/test_close.rb
slyphon-zookeeper-0.8.2 test/test_close.rb
slyphon-zookeeper-0.8.2-java test/test_close.rb