public interface MetaLoader
String getMeta(String path) throws org.apache.zookeeper.KeeperException
path - zk pathorg.apache.zookeeper.KeeperException - KeeperExceptionorg.apache.zookeeper.data.Stat stat(String path) throws org.apache.zookeeper.KeeperException, InterruptedException
在zk没完成连接或者是丢失连接等情况下抛出异常;
节点不存在将返回null
path - zookeeper路径org.apache.zookeeper.KeeperExceptionInterruptedExceptionbyte[] get(String path) throws org.apache.zookeeper.KeeperException, InterruptedException
本方法无状态,可以多线程访问
path - zookeeper路径InterruptedExceptionorg.apache.zookeeper.KeeperExceptionCopyright © 2017. All rights reserved.