Uses of Class
org.apache.zookeeper.KeeperException
-
Packages that use KeeperException Package Description org.apache.zookeeper org.apache.zookeeper.admin org.apache.zookeeper.cli org.apache.zookeeper.inspector.manager org.apache.zookeeper.retry org.apache.zookeeper.server ZooKeeper server theory of operationorg.apache.zookeeper.server.quorum org.apache.zookeeper.test.system -
-
Uses of KeeperException in org.apache.zookeeper
Methods in org.apache.zookeeper that return KeeperException Modifier and Type Method Description static KeeperException
KeeperException. create(int code)
Deprecated.deprecated in 3.1.0, usecreate(Code)
insteadstatic KeeperException
KeeperException. create(int code, java.lang.String path)
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, java.lang.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 KeeperException Modifier and Type Method Description void
ZooKeeper. addWatch(java.lang.String basePath, AddWatchMode mode)
Add a watch to the given znode using the given mode.void
ZooKeeper. addWatch(java.lang.String basePath, Watcher watcher, AddWatchMode mode)
Add a watch to the given znode using the given mode.java.util.List<OpResult>
Transaction. commit()
java.lang.String
ZooKeeper. create(java.lang.String path, byte[] data, java.util.List<ACL> acl, CreateMode createMode)
Create a node with the given path.java.lang.String
ZooKeeper. create(java.lang.String path, byte[] data, java.util.List<ACL> acl, CreateMode createMode, Stat stat)
Create a node with the given path and returns the Stat of that node.java.lang.String
ZooKeeper. create(java.lang.String path, byte[] data, java.util.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
ZooKeeper. delete(java.lang.String path, int version)
Delete the node with the given path.static void
ZKUtil. deleteRecursive(ZooKeeper zk, java.lang.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, java.lang.String pathRoot, int batchSize)
Recursively delete the node with the given path.static void
ZKUtil. deleteRecursive(ZooKeeper zk, java.lang.String pathRoot, AsyncCallback.VoidCallback cb, java.lang.Object ctx)
Recursively delete the node with the given path.Stat
ZooKeeper. exists(java.lang.String path, boolean watch)
Return the stat of the node of the given path.Stat
ZooKeeper. exists(java.lang.String path, Watcher watcher)
Return the stat of the node of the given path.static CreateMode
CreateMode. fromFlag(int flag)
Map an integer value to a CreateMode valuejava.util.List<ACL>
ZooKeeper. getACL(java.lang.String path, Stat stat)
Return the ACL and stat of the node of the given path.int
ZooKeeper. getAllChildrenNumber(java.lang.String path)
Synchronously gets all numbers of children nodes under a specific pathjava.util.List<java.lang.String>
ZooKeeper. getChildren(java.lang.String path, boolean watch)
Return the list of the children of the node of the given path.java.util.List<java.lang.String>
ZooKeeper. getChildren(java.lang.String path, boolean watch, Stat stat)
For the given znode path return the stat and children list.java.util.List<java.lang.String>
ZooKeeper. getChildren(java.lang.String path, Watcher watcher)
Return the list of the children of the node of the given path.java.util.List<java.lang.String>
ZooKeeper. getChildren(java.lang.String path, Watcher watcher, Stat stat)
For the given znode path return the stat and children list.byte[]
ZooKeeper. getConfig(boolean watch, Stat stat)
Return the last committed configuration (as known to the server to which the client is connected) and the stat of the configuration.byte[]
ZooKeeper. getConfig(Watcher watcher, Stat stat)
Return the last committed configuration (as known to the server to which the client is connected) and the stat of the configuration.byte[]
ZooKeeper. getData(java.lang.String path, boolean watch, Stat stat)
Return the data and the stat of the node of the given path.byte[]
ZooKeeper. getData(java.lang.String path, Watcher watcher, Stat stat)
Return the data and the stat of the node of the given path.java.util.List<java.lang.String>
ZooKeeper. getEphemerals()
Synchronously gets all the ephemeral nodes created by this session.java.util.List<java.lang.String>
ZooKeeper. getEphemerals(java.lang.String prefixPath)
Synchronously gets all the ephemeral nodes matching prefixPath created by this session.static java.util.List<java.lang.String>
ZKUtil. listSubTreeBFS(ZooKeeper zk, java.lang.String pathRoot)
BFS Traversal of the system under pathRoot, with the entries in the list, in the same order as that of the traversal.java.util.List<OpResult>
ZooKeeper. multi(java.lang.Iterable<Op> ops)
Executes multiple ZooKeeper operations.protected java.util.List<OpResult>
ZooKeeper. multiInternal(MultiOperationRecord request)
void
ZooKeeper. removeAllWatches(java.lang.String path, Watcher.WatcherType watcherType, boolean local)
For the given znode path, removes all the registered watchers of given watcherType.void
ZooKeeper. removeWatches(java.lang.String path, Watcher watcher, Watcher.WatcherType watcherType, boolean local)
For the given znode path, removes the specified watcher of given watcherType.Stat
ZooKeeper. setACL(java.lang.String path, java.util.List<ACL> acl, int aclVersion)
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.Stat
ZooKeeper. setData(java.lang.String path, byte[] data, int version)
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).java.util.Map<Watcher.Event.EventType,java.util.Set<Watcher>>
WatchDeregistration. unregister(int rc)
Unregistering watcher that was added on path.static void
ZKUtil. visitSubTreeDFS(ZooKeeper zk, java.lang.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 KeeperException Modifier and Type Method Description byte[]
ZooKeeperAdmin. reconfigure(java.lang.String joiningServers, java.lang.String leavingServers, java.lang.String newMembers, long fromConfig, Stat stat)
Reconfigure - add/remove servers.byte[]
ZooKeeperAdmin. reconfigure(java.util.List<java.lang.String> joiningServers, java.util.List<java.lang.String> leavingServers, java.util.List<java.lang.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 KeeperException Modifier and Type Method Description static boolean
SetQuotaCommand. createQuota(ZooKeeper zk, java.lang.String path, StatsTrack quota)
this method creates a quota node for the pathstatic boolean
DelQuotaCommand. delQuota(ZooKeeper zk, java.lang.String path, StatsTrack quota)
this method deletes quota for a node.static java.util.List<StatsTrack>
ListQuotaCommand. listQuota(ZooKeeper zk, java.lang.String path)
-
Uses of KeeperException in org.apache.zookeeper.inspector.manager
Constructors in org.apache.zookeeper.inspector.manager that throw KeeperException Constructor Description NodeWatcher(java.lang.String nodePath, NodeListener nodeListener, ZooKeeper zookeeper)
-
Uses of KeeperException in org.apache.zookeeper.retry
Methods in org.apache.zookeeper.retry that throw KeeperException Modifier and Type Method Description java.lang.String
ZooKeeperRetry. create(java.lang.String path, byte[] data, java.util.List<ACL> acl, CreateMode createMode)
void
ZooKeeperRetry. delete(java.lang.String path, int version)
Stat
ZooKeeperRetry. exists(java.lang.String path, boolean watch)
Stat
ZooKeeperRetry. exists(java.lang.String path, Watcher watcher)
java.util.List<ACL>
ZooKeeperRetry. getACL(java.lang.String path, Stat stat)
java.util.List<java.lang.String>
ZooKeeperRetry. getChildren(java.lang.String path, boolean watch)
java.util.List<java.lang.String>
ZooKeeperRetry. getChildren(java.lang.String path, Watcher watcher)
byte[]
ZooKeeperRetry. getData(java.lang.String path, boolean watch, Stat stat)
byte[]
ZooKeeperRetry. getData(java.lang.String path, Watcher watcher, Stat stat)
Stat
ZooKeeperRetry. setACL(java.lang.String path, java.util.List<ACL> acl, int aclVersion)
Stat
ZooKeeperRetry. setData(java.lang.String path, byte[] data, int version)
-
Uses of KeeperException in org.apache.zookeeper.server
Methods in org.apache.zookeeper.server that return KeeperException Modifier and Type Method Description KeeperException
Request. getException()
Methods in org.apache.zookeeper.server with parameters of type KeeperException Modifier and Type Method Description void
Request. setException(KeeperException e)
Methods in org.apache.zookeeper.server that throw KeeperException Modifier and Type Method Description protected 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 Modifier and Type Method Description Request
QuorumZooKeeperServer. checkUpgradeSession(Request request)
-
Uses of KeeperException in org.apache.zookeeper.test.system
Methods in org.apache.zookeeper.test.system that throw KeeperException Modifier and Type Method Description java.lang.String
InstanceManager. assignInstance(java.lang.String name, java.lang.Class<? extends Instance> clazz, java.lang.String params, int weight)
java.lang.String
InstanceManager. getStatus(java.lang.String name, long timeout)
static void
GenerateLoad. main(java.lang.String[] args)
static void
InstanceContainer. main(java.lang.String[] args)
void
InstanceManager. reconfigureInstance(java.lang.String name, java.lang.String params)
void
InstanceManager. removeInstance(java.lang.String name)
void
Instance.Reporter. report(java.lang.String report)
void
InstanceManager. resetStatus(java.lang.String name)
void
InstanceContainer. run()
Constructors in org.apache.zookeeper.test.system that throw KeeperException Constructor Description InstanceManager(ZooKeeper zk, java.lang.String prefix)
-