Class TestRecoverableZooKeeper.ZookeeperStub
java.lang.Object
org.apache.zookeeper.ZooKeeper
org.apache.hadoop.hbase.zookeeper.TestRecoverableZooKeeper.ZookeeperStub
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
- TestRecoverableZooKeeper
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.zookeeper.ZooKeeper
org.apache.zookeeper.ZooKeeper.States, org.apache.zookeeper.ZooKeeper.WatchRegistration
-
Field Summary
Fields inherited from class org.apache.zookeeper.ZooKeeper
cnxn, hostProvider, SECURE_CLIENT, ZOOKEEPER_CLIENT_CNXN_SOCKET
-
Constructor Summary
ConstructorDescriptionZookeeperStub
(String connectString, int sessionTimeout, org.apache.zookeeper.Watcher watcher) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
org.apache.zookeeper.data.Stat
(package private) void
setThrowExceptionInNumOperations
(int throwExceptionInNumOperations) Methods inherited from class org.apache.zookeeper.ZooKeeper
addAuthInfo, addWatch, addWatch, addWatch, addWatch, close, close, create, create, create, create, create, create, delete, delete, exists, exists, exists, exists, getACL, getACL, getAllChildrenNumber, getAllChildrenNumber, getChildren, getChildren, getChildren, getChildren, getChildren, getChildren, getChildren, getChildren, getChildWatches, getClientConfig, getConfig, getConfig, getConfig, getConfig, getData, getData, getData, getData, getDataWatches, getEphemerals, getEphemerals, getEphemerals, getEphemerals, getExistWatches, getPersistentRecursiveWatches, getPersistentWatches, getSaslClient, getSessionId, getSessionPasswd, getSessionTimeout, getState, getTestable, multi, multi, multiInternal, multiInternal, register, removeAllWatches, removeAllWatches, removeWatches, removeWatches, setACL, setACL, setData, sync, testableLocalSocketAddress, testableRemoteSocketAddress, testableWaitForShutdown, toString, transaction, updateServerList, whoAmI
-
Field Details
-
throwExceptionInNumOperations
-
-
Constructor Details
-
ZookeeperStub
ZookeeperStub(String connectString, int sessionTimeout, org.apache.zookeeper.Watcher watcher) throws IOException - Throws:
IOException
-
-
Method Details
-
setThrowExceptionInNumOperations
-
checkThrowKeeperException
- Throws:
org.apache.zookeeper.KeeperException
-
setData
public org.apache.zookeeper.data.Stat setData(String path, byte[] data, int version) throws org.apache.zookeeper.KeeperException, InterruptedException - Overrides:
setData
in classorg.apache.zookeeper.ZooKeeper
- Throws:
org.apache.zookeeper.KeeperException
InterruptedException
-