public class ZooKeeperx extends Object implements org.I0Itec.zkclient.IZkConnection
| 构造器和说明 |
|---|
ZooKeeperx(String zkServers) |
ZooKeeperx(String zkServers,
int sessionTimeOut) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
void |
configMutliCluster(org.apache.zookeeper.ZooKeeper zk) |
void |
connect(org.apache.zookeeper.Watcher watcher) |
String |
create(String path,
byte[] data,
org.apache.zookeeper.CreateMode mode) |
void |
delete(String path) |
boolean |
exists(String path,
boolean watch) |
List<String> |
getChildren(String path,
boolean watch) |
long |
getCreateTime(String path) |
String |
getServers() |
org.apache.zookeeper.ZooKeeper |
getZookeeper() |
org.apache.zookeeper.ZooKeeper.States |
getZookeeperState() |
byte[] |
readData(String path,
org.apache.zookeeper.data.Stat stat,
boolean watch) |
void |
writeData(String path,
byte[] data) |
void |
writeData(String path,
byte[] data,
int version) |
public ZooKeeperx(String zkServers)
public ZooKeeperx(String zkServers, int sessionTimeOut)
public void connect(org.apache.zookeeper.Watcher watcher)
connect 在接口中 org.I0Itec.zkclient.IZkConnectionpublic void close()
throws InterruptedException
close 在接口中 org.I0Itec.zkclient.IZkConnectionInterruptedExceptionpublic String create(String path, byte[] data, org.apache.zookeeper.CreateMode mode) throws org.apache.zookeeper.KeeperException, InterruptedException
create 在接口中 org.I0Itec.zkclient.IZkConnectionorg.apache.zookeeper.KeeperExceptionInterruptedExceptionpublic void delete(String path) throws InterruptedException, org.apache.zookeeper.KeeperException
delete 在接口中 org.I0Itec.zkclient.IZkConnectionInterruptedExceptionorg.apache.zookeeper.KeeperExceptionpublic boolean exists(String path, boolean watch) throws org.apache.zookeeper.KeeperException, InterruptedException
exists 在接口中 org.I0Itec.zkclient.IZkConnectionorg.apache.zookeeper.KeeperExceptionInterruptedExceptionpublic List<String> getChildren(String path, boolean watch) throws org.apache.zookeeper.KeeperException, InterruptedException
getChildren 在接口中 org.I0Itec.zkclient.IZkConnectionorg.apache.zookeeper.KeeperExceptionInterruptedExceptionpublic byte[] readData(String path, org.apache.zookeeper.data.Stat stat, boolean watch) throws org.apache.zookeeper.KeeperException, InterruptedException
readData 在接口中 org.I0Itec.zkclient.IZkConnectionorg.apache.zookeeper.KeeperExceptionInterruptedExceptionpublic void writeData(String path, byte[] data) throws org.apache.zookeeper.KeeperException, InterruptedException
org.apache.zookeeper.KeeperExceptionInterruptedExceptionpublic void writeData(String path, byte[] data, int version) throws org.apache.zookeeper.KeeperException, InterruptedException
writeData 在接口中 org.I0Itec.zkclient.IZkConnectionorg.apache.zookeeper.KeeperExceptionInterruptedExceptionpublic org.apache.zookeeper.ZooKeeper.States getZookeeperState()
getZookeeperState 在接口中 org.I0Itec.zkclient.IZkConnectionpublic org.apache.zookeeper.ZooKeeper getZookeeper()
public long getCreateTime(String path) throws org.apache.zookeeper.KeeperException, InterruptedException
getCreateTime 在接口中 org.I0Itec.zkclient.IZkConnectionorg.apache.zookeeper.KeeperExceptionInterruptedExceptionpublic String getServers()
getServers 在接口中 org.I0Itec.zkclient.IZkConnectionpublic void configMutliCluster(org.apache.zookeeper.ZooKeeper zk)
Copyright © 2017. All Rights Reserved.