public final class ZooKeeperRetriableUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
add(IZKClient zooKeeper,
java.lang.String path,
java.lang.String value) |
static void |
copy(IZKClient source,
IZKClient dest,
java.lang.String path) |
static void |
copy(IZKClient zk,
java.lang.String from,
java.lang.String to) |
static void |
create(IZKClient zooKeeper,
java.lang.String path) |
static void |
createDefault(IZKClient zooKeeper,
java.lang.String path,
java.lang.String value) |
static org.apache.zookeeper.data.Stat |
exists(IZKClient zooKeeper,
java.lang.String path) |
static java.lang.String |
generatePassword()
Generate a random String that can be used as a Zookeeper password.
|
static java.lang.String |
get(IZKClient zooKeeper,
java.lang.String path) |
static java.util.Properties |
getProperties(IZKClient zooKeeper,
java.lang.String path) |
static java.util.Properties |
getProperties(IZKClient zooKeeper,
java.lang.String path,
org.apache.zookeeper.Watcher watcher) |
static java.lang.String |
getSubstitutedData(IZKClient zooKeeper,
java.lang.String data) |
static java.lang.String |
getSubstitutedPath(IZKClient zooKeeper,
java.lang.String path) |
static void |
remove(IZKClient zooKeeper,
java.lang.String path,
java.lang.String value) |
static void |
set(IZKClient zooKeeper,
java.lang.String path,
byte[] value) |
static void |
set(IZKClient zooKeeper,
java.lang.String path,
java.lang.String value) |
static void |
setProperties(IZKClient zooKeeper,
java.lang.String path,
java.util.Properties properties) |
public static void copy(IZKClient source, IZKClient dest, java.lang.String path) throws java.lang.InterruptedException, org.apache.zookeeper.KeeperException
java.lang.InterruptedExceptionorg.apache.zookeeper.KeeperExceptionpublic static void copy(IZKClient zk, java.lang.String from, java.lang.String to) throws java.lang.InterruptedException, org.apache.zookeeper.KeeperException
java.lang.InterruptedExceptionorg.apache.zookeeper.KeeperExceptionpublic static void add(IZKClient zooKeeper, java.lang.String path, java.lang.String value) throws java.lang.InterruptedException, org.apache.zookeeper.KeeperException
java.lang.InterruptedExceptionorg.apache.zookeeper.KeeperExceptionpublic static void remove(IZKClient zooKeeper, java.lang.String path, java.lang.String value) throws java.lang.InterruptedException, org.apache.zookeeper.KeeperException
java.lang.InterruptedExceptionorg.apache.zookeeper.KeeperExceptionpublic static java.lang.String get(IZKClient zooKeeper, java.lang.String path) throws java.lang.InterruptedException, org.apache.zookeeper.KeeperException
java.lang.InterruptedExceptionorg.apache.zookeeper.KeeperExceptionpublic static void set(IZKClient zooKeeper, java.lang.String path, java.lang.String value) throws java.lang.InterruptedException, org.apache.zookeeper.KeeperException
java.lang.InterruptedExceptionorg.apache.zookeeper.KeeperExceptionpublic static void set(IZKClient zooKeeper, java.lang.String path, byte[] value) throws java.lang.InterruptedException, org.apache.zookeeper.KeeperException
java.lang.InterruptedExceptionorg.apache.zookeeper.KeeperExceptionpublic static void create(IZKClient zooKeeper, java.lang.String path) throws java.lang.InterruptedException, org.apache.zookeeper.KeeperException
java.lang.InterruptedExceptionorg.apache.zookeeper.KeeperExceptionpublic static void createDefault(IZKClient zooKeeper, java.lang.String path, java.lang.String value) throws java.lang.InterruptedException, org.apache.zookeeper.KeeperException
java.lang.InterruptedExceptionorg.apache.zookeeper.KeeperExceptionpublic static org.apache.zookeeper.data.Stat exists(IZKClient zooKeeper, java.lang.String path) throws java.lang.InterruptedException, org.apache.zookeeper.KeeperException
java.lang.InterruptedExceptionorg.apache.zookeeper.KeeperExceptionpublic static java.util.Properties getProperties(IZKClient zooKeeper, java.lang.String path, org.apache.zookeeper.Watcher watcher) throws java.lang.InterruptedException, org.apache.zookeeper.KeeperException
java.lang.InterruptedExceptionorg.apache.zookeeper.KeeperExceptionpublic static java.util.Properties getProperties(IZKClient zooKeeper, java.lang.String path) throws java.lang.InterruptedException, org.apache.zookeeper.KeeperException
java.lang.InterruptedExceptionorg.apache.zookeeper.KeeperExceptionpublic static void setProperties(IZKClient zooKeeper, java.lang.String path, java.util.Properties properties) throws java.lang.InterruptedException, org.apache.zookeeper.KeeperException
java.lang.InterruptedExceptionorg.apache.zookeeper.KeeperExceptionpublic static java.lang.String getSubstitutedPath(IZKClient zooKeeper, java.lang.String path) throws java.lang.InterruptedException, org.apache.zookeeper.KeeperException, java.io.IOException, java.net.URISyntaxException
java.lang.InterruptedExceptionorg.apache.zookeeper.KeeperExceptionjava.io.IOExceptionjava.net.URISyntaxExceptionpublic static java.lang.String getSubstitutedData(IZKClient zooKeeper, java.lang.String data) throws java.net.URISyntaxException
java.net.URISyntaxExceptionpublic static java.lang.String generatePassword()
Copyright © 2014 Red Hat. All Rights Reserved.