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.8.1 test/test_close.rb
slyphon-zookeeper-0.8.1-java test/test_close.rb
slyphon-zookeeper-0.8.0 test/test_close.rb
slyphon-zookeeper-0.8.0-java test/test_close.rb
slyphon-zookeeper-0.8.0.rc.1-java test/test_close.rb
slyphon-zookeeper-0.8.0.rc.1 test/test_close.rb
slyphon-zookeeper-0.3.0 test/test_close.rb
slyphon-zookeeper-0.3.0-java test/test_close.rb
slyphon-zookeeper-0.2.11 test/test_close.rb
slyphon-zookeeper-0.2.11-java test/test_close.rb
slyphon-zookeeper-0.2.10 test/test_close.rb
slyphon-zookeeper-0.2.10-java test/test_close.rb
slyphon-zookeeper-0.2.9-java test/test_close.rb
slyphon-zookeeper-0.2.9 test/test_close.rb
slyphon-zookeeper-0.2.8-java test/test_close.rb
slyphon-zookeeper-0.2.8 test/test_close.rb
slyphon-zookeeper-0.2.7 test/test_close.rb
slyphon-zookeeper-0.2.7-java test/test_close.rb
slyphon-zookeeper-0.2.5 test/test_close.rb
slyphon-zookeeper-0.2.5-java test/test_close.rb