zookeeper 1.2.9-java → 1.2.10-java
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/java/java_base.rb +7 -3
- data/lib/zookeeper/version.rb +1 -1
- metadata +4 -4
data/CHANGELOG
CHANGED
data/java/java_base.rb
CHANGED
@@ -443,7 +443,7 @@ class JavaBase
|
|
443
443
|
# this is a no-op in java-land
|
444
444
|
end
|
445
445
|
|
446
|
-
|
446
|
+
private
|
447
447
|
def jzk
|
448
448
|
@mutex.synchronize { @jzk }
|
449
449
|
end
|
@@ -451,9 +451,14 @@ class JavaBase
|
|
451
451
|
def handle_keeper_exception
|
452
452
|
yield
|
453
453
|
rescue JZK::KeeperException => e
|
454
|
-
e.cause.code.intValue
|
454
|
+
if e.respond_to?(:cause) and e.cause and e.cause.respond_to?(:code) and e.cause.code and e.cause.code.respond_to?(:intValue)
|
455
|
+
e.cause.code.intValue
|
456
|
+
else
|
457
|
+
raise e # dunno what happened, just raise it
|
458
|
+
end
|
455
459
|
end
|
456
460
|
|
461
|
+
|
457
462
|
def call_type(callback, watcher)
|
458
463
|
if callback
|
459
464
|
watcher ? :async_watch : :async
|
@@ -481,7 +486,6 @@ class JavaBase
|
|
481
486
|
}
|
482
487
|
end
|
483
488
|
|
484
|
-
private
|
485
489
|
def replace_jzk!
|
486
490
|
orig_jzk = @jzk
|
487
491
|
@jzk = JZK::ZooKeeper.new(@host, DEFAULT_SESSION_TIMEOUT, JavaCB::WatcherCallback.new(event_queue, :client => self))
|
data/lib/zookeeper/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zookeeper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 11
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 1.2.
|
9
|
+
- 10
|
10
|
+
version: 1.2.10
|
11
11
|
platform: java
|
12
12
|
authors:
|
13
13
|
- Phillip Pearson
|
@@ -20,7 +20,7 @@ autorequire:
|
|
20
20
|
bindir: bin
|
21
21
|
cert_chain: []
|
22
22
|
|
23
|
-
date: 2012-
|
23
|
+
date: 2012-07-02 00:00:00 Z
|
24
24
|
dependencies:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: backports
|