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.4.0 test/test_close.rb
zookeeper-0.3.2 test/test_close.rb