Uses of Class
org.apache.zookeeper.KeeperException
Packages that use KeeperException
Package
Description
ZooKeeper server theory of operation
-
Uses of KeeperException in org.apache.zookeeper
Subclasses of KeeperException in org.apache.zookeeperModifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
Methods in org.apache.zookeeper that return KeeperExceptionModifier and TypeMethodDescriptionstatic KeeperException
KeeperException.create
(int code) Deprecated.static KeeperException
Deprecated.deprecated in 3.1.0, usecreate(Code, String)
insteadstatic KeeperException
KeeperException.create
(KeeperException.Code code) All non-specific keeper exceptions should be constructed via this factory method in order to guarantee consistency in error codes and such.static KeeperException
KeeperException.create
(KeeperException.Code code, String path) All non-specific keeper exceptions should be constructed via this factory method in order to guarantee consistency in error codes and such.Methods in org.apache.zookeeper that throw KeeperExceptionModifier and TypeMethodDescriptionvoid
ZooKeeper.addWatch
(String basePath, AddWatchMode mode) Add a watch to the given znode using the given mode.void
ZooKeeper.addWatch
(String basePath, Watcher watcher, AddWatchMode mode) Add a watch to the given znode using the given mode.Transaction.commit()
ZooKeeper.create
(String path, byte[] data, List<ACL> acl, CreateMode createMode) Create a node with the given path.Create a node with the given path and returns the Stat of that node.ZooKeeper.create
(String path, byte[] data, List<ACL> acl, CreateMode createMode, Stat stat, long ttl) same asZooKeeper.create(String, byte[], List, CreateMode, Stat)
but allows for specifying a TTL when mode isCreateMode.PERSISTENT_WITH_TTL
orCreateMode.PERSISTENT_SEQUENTIAL_WITH_TTL
.void
Delete the node with the given path.static void
ZKUtil.deleteRecursive
(ZooKeeper zk, String pathRoot) Same asZKUtil.deleteRecursive(org.apache.zookeeper.ZooKeeper, java.lang.String, int)
kept here for compatibility with 3.5 clients.static boolean
ZKUtil.deleteRecursive
(ZooKeeper zk, String pathRoot, int batchSize) Recursively delete the node with the given path.static void
ZKUtil.deleteRecursive
(ZooKeeper zk, String pathRoot, AsyncCallback.VoidCallback cb, Object ctx) Recursively delete the node with the given path.Return the stat of the node of the given path.Return the stat of the node of the given path.static CreateMode
CreateMode.fromFlag
(int flag) Map an integer value to a CreateMode valueReturn the ACL and stat of the node of the given path.int
ZooKeeper.getAllChildrenNumber
(String path) Synchronously gets all numbers of children nodes under a specific pathZooKeeper.getChildren
(String path, boolean watch) Return the list of the children of the node of the given path.ZooKeeper.getChildren
(String path, boolean watch, Stat stat) For the given znode path return the stat and children list.ZooKeeper.getChildren
(String path, Watcher watcher) Return the list of the children of the node of the given path.ZooKeeper.getChildren
(String path, Watcher watcher, Stat stat) For the given znode path return the stat and children list.byte[]
Return the last committed configuration (as known to the server to which the client is connected) and the stat of the configuration.byte[]
Return the last committed configuration (as known to the server to which the client is connected) and the stat of the configuration.byte[]
Return the data and the stat of the node of the given path.byte[]
Return the data and the stat of the node of the given path.ZooKeeper.getEphemerals()
Synchronously gets all the ephemeral nodes created by this session.ZooKeeper.getEphemerals
(String prefixPath) Synchronously gets all the ephemeral nodes matching prefixPath created by this session.ZKUtil.listSubTreeBFS
(ZooKeeper zk, String pathRoot) BFS Traversal of the system under pathRoot, with the entries in the list, in the same order as that of the traversal.Executes multiple ZooKeeper operations.ZooKeeper.multiInternal
(MultiOperationRecord request) void
ZooKeeper.removeAllWatches
(String path, Watcher.WatcherType watcherType, boolean local) For the given znode path, removes all the registered watchers of given watcherType.void
ZooKeeper.removeWatches
(String path, Watcher watcher, Watcher.WatcherType watcherType, boolean local) For the given znode path, removes the specified watcher of given watcherType.Set the ACL for the node of the given path if such a node exists and the given aclVersion matches the acl version of the node.Set the data for the node of the given path if such a node exists and the given version matches the version of the node (if the given version is -1, it matches any node's versions).WatchDeregistration.unregister
(int rc) Unregistering watcher that was added on path.static void
ZKUtil.visitSubTreeDFS
(ZooKeeper zk, String path, boolean watch, AsyncCallback.StringCallback cb) Visits the subtree with root as given path and calls the passed callback with each znode found during the search. -
Uses of KeeperException in org.apache.zookeeper.admin
Methods in org.apache.zookeeper.admin that throw KeeperExceptionModifier and TypeMethodDescriptionbyte[]
ZooKeeperAdmin.reconfigure
(String joiningServers, String leavingServers, String newMembers, long fromConfig, Stat stat) Reconfigure - add/remove servers.byte[]
ZooKeeperAdmin.reconfigure
(List<String> joiningServers, List<String> leavingServers, List<String> newMembers, long fromConfig, Stat stat) Convenience wrapper around reconfig that takes Lists of strings instead of comma-separated servers. -
Uses of KeeperException in org.apache.zookeeper.cli
Methods in org.apache.zookeeper.cli that throw KeeperExceptionModifier and TypeMethodDescriptionstatic boolean
SetQuotaCommand.createQuota
(ZooKeeper zk, String path, StatsTrack quota) this method creates a quota node for the pathstatic boolean
DelQuotaCommand.delQuota
(ZooKeeper zk, String path, StatsTrack quota) this method deletes quota for a node.static List<StatsTrack>
-
Uses of KeeperException in org.apache.zookeeper.inspector.manager
Constructors in org.apache.zookeeper.inspector.manager that throw KeeperExceptionModifierConstructorDescriptionNodeWatcher
(String nodePath, NodeListener nodeListener, ZooKeeper zookeeper) -
Uses of KeeperException in org.apache.zookeeper.retry
Methods in org.apache.zookeeper.retry that throw KeeperExceptionModifier and TypeMethodDescriptionZooKeeperRetry.create
(String path, byte[] data, List<ACL> acl, CreateMode createMode) void
ZooKeeperRetry.getChildren
(String path, boolean watch) ZooKeeperRetry.getChildren
(String path, Watcher watcher) byte[]
byte[]
-
Uses of KeeperException in org.apache.zookeeper.server
Methods in org.apache.zookeeper.server that return KeeperExceptionMethods in org.apache.zookeeper.server with parameters of type KeeperExceptionMethods in org.apache.zookeeper.server that throw KeeperExceptionModifier and TypeMethodDescriptionprotected void
PrepRequestProcessor.pRequest2Txn
(int type, long zxid, Request request, Record record, boolean deserialize) This method will be called inside the ProcessRequestThread, which is a singleton, so there will be a single thread calling this code. -
Uses of KeeperException in org.apache.zookeeper.server.quorum
Methods in org.apache.zookeeper.server.quorum that throw KeeperException -
Uses of KeeperException in org.apache.zookeeper.test.system
Methods in org.apache.zookeeper.test.system that throw KeeperExceptionModifier and TypeMethodDescriptionInstanceManager.assignInstance
(String name, Class<? extends Instance> clazz, String params, int weight) static void
static void
void
InstanceManager.reconfigureInstance
(String name, String params) void
InstanceManager.removeInstance
(String name) void
void
InstanceManager.resetStatus
(String name) void
InstanceContainer.run()
Constructors in org.apache.zookeeper.test.system that throw KeeperException
create(Code)
instead