public class ZookeeperHandlerImpl extends Object implements ZookeeperHandler
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addListener(org.apache.curator.framework.state.ConnectionStateListener listener) |
void |
close() |
ZookeeperHandlerImpl |
configure(AutoConfiguration configuration) |
String |
get(String path) |
int |
getChildCount(String path) |
List<String> |
getChildPath(String path) |
org.apache.curator.framework.CuratorFramework |
getClient() |
AutoConfiguration |
getConfiguration() |
static ZookeeperHandlerImpl |
getInstance() |
boolean |
isExisted(String path) |
void |
remove(String path) |
boolean |
saveOrUpdate(String path,
String value) |
public static ZookeeperHandlerImpl getInstance()
public int getChildCount(String path)
getChildCount 在接口中 ZookeeperHandlerpublic org.apache.curator.framework.CuratorFramework getClient()
getClient 在接口中 ZookeeperHandlerpublic List<String> getChildPath(String path)
getChildPath 在接口中 ZookeeperHandlerpublic boolean isExisted(String path) throws Exception
isExisted 在接口中 ZookeeperHandlerExceptionpublic boolean saveOrUpdate(String path, String value)
saveOrUpdate 在接口中 ZookeeperHandlerpublic AutoConfiguration getConfiguration()
public ZookeeperHandlerImpl configure(AutoConfiguration configuration)
public void addListener(org.apache.curator.framework.state.ConnectionStateListener listener)
addListener 在接口中 ZookeeperHandlerpublic void remove(String path)
remove 在接口中 ZookeeperHandlerpublic void close()
close 在接口中 ZookeeperHandlerpublic String get(String path)
get 在接口中 ZookeeperHandlerCopyright © 2019. All rights reserved.