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
slyphon-zookeeper-0.2.4-java test/test_close.rb
slyphon-zookeeper-0.2.4 test/test_close.rb
slyphon-zookeeper-0.2.3 test/test_close.rb
slyphon-zookeeper-0.2.3-java test/test_close.rb
slyphon-zookeeper-0.2.1-java test/test_close.rb
slyphon-zookeeper-0.2.1 test/test_close.rb
slyphon-zookeeper-0.2.0-java test/test_close.rb
slyphon-zookeeper-0.2.0 test/test_close.rb
slyphon-zookeeper-0.1.7 test/test_close.rb
slyphon-zookeeper-0.1.7-java test/test_close.rb
slyphon-zookeeper-0.1.6 test/test_close.rb
slyphon-zookeeper-0.1.6-java test/test_close.rb
zookeeper-0.4.4 test/test_close.rb
slyphon-zookeeper-0.1.4 test/test_close.rb
slyphon-zookeeper-0.1.4-java test/test_close.rb
slyphon-zookeeper-0.1.0 test/test_close.rb
slyphon-zookeeper-0.1.0-java test/test_close.rb
zookeeper-0.4.3 test/test_close.rb
zookeeper-0.4.2 test/test_close.rb
zookeeper-0.4.1 test/test_close.rb