程序包 org.tio.utils.zk
类 Zk
java.lang.Object
org.tio.utils.zk.Zk
- 作者:
- tanyaowu 2017年9月19日 下午3:06:34
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static voidaddPathChildrenCacheListener(String path, org.apache.curator.framework.recipes.cache.PathChildrenCacheListener pathChildrenCacheListener) static voidcreateContainers(String path) static voidcreateOrUpdate(String path, byte[] content, org.apache.zookeeper.CreateMode createMode) static voidcreateOrUpdate(String path, String content, org.apache.zookeeper.CreateMode createMode) static voidstatic booleanstatic byte[]getChildren(String path) static Stringstatic Stringstatic voidinit(String address, ClientDecorator clientDecorator) static voidstatic voidstatic voidstart()Start the client.static void
-
字段详细资料
-
zkclient
public static org.apache.curator.framework.CuratorFramework zkclient
-
-
构造器详细资料
-
Zk
public Zk()
-
-
方法详细资料
-
init
- 参数:
address-clientDecorator-- 抛出:
Exception
-
start
public static void start()Start the client. Most mutator methods will not work until the client is started -
createOrUpdate
public static void createOrUpdate(String path, String content, org.apache.zookeeper.CreateMode createMode) throws Exception - 参数:
path-content-createMode-- 抛出:
Exception
-
createOrUpdate
public static void createOrUpdate(String path, byte[] content, org.apache.zookeeper.CreateMode createMode) throws Exception - 参数:
path-content-createMode-- 抛出:
Exception
-
createContainers
- 抛出:
Exception
-
delete
- 参数:
path-- 抛出:
Exception
-
exists
- 参数:
path-- 返回:
- 抛出:
Exception
-
getBytes
- 参数:
path-- 返回:
- 抛出:
Exception
-
getString
- 参数:
path-charset-- 返回:
- 抛出:
Exception
-
getString
- 抛出:
Exception
-
getChildren
- 参数:
path-- 返回:
- 抛出:
Exception
-
upload
public static void upload(String path, String localpath, org.apache.zookeeper.CreateMode createMode) throws Exception - 参数:
path-localpath-createMode-- 抛出:
Exception
-
setData
- 参数:
path-bs-- 抛出:
Exception
-
setData
- 参数:
path-content-- 抛出:
Exception
-
addPathChildrenCacheListener
public static void addPathChildrenCacheListener(String path, org.apache.curator.framework.recipes.cache.PathChildrenCacheListener pathChildrenCacheListener) throws Exception - 参数:
path-pathChildrenCacheListener-- 抛出:
Exception
-