public class ClusterZKDataMonitor extends Object implements DataMonitor, org.apache.zookeeper.Watcher
| 构造器和说明 |
|---|
ClusterZKDataMonitor() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addListener(ClusterModuleListener listener) |
void |
createPath(String path) |
String |
getBaseCatalog() |
ClusterModuleListener |
getListener(String path) |
void |
process(org.apache.zookeeper.WatchedEvent event) |
void |
register(String path,
ModuleRegistration registration) |
void |
setClient(Client client) |
void |
setData(String path,
String value) |
void |
start() |
public void process(org.apache.zookeeper.WatchedEvent event)
process 在接口中 org.apache.zookeeper.Watcherpublic void setClient(Client client)
setClient 在接口中 DataMonitorpublic void start()
throws CollectorException
public void addListener(ClusterModuleListener listener)
addListener 在接口中 DataMonitorpublic void register(String path, ModuleRegistration registration)
register 在接口中 DataMonitorpublic ClusterModuleListener getListener(String path)
getListener 在接口中 DataMonitorpublic void createPath(String path) throws ClientException
createPath 在接口中 DataMonitorClientExceptionpublic void setData(String path, String value) throws ClientException
setData 在接口中 DataMonitorClientExceptionpublic String getBaseCatalog()
getBaseCatalog 在接口中 DataMonitorCopyright © 2018 The Apache Software Foundation. All rights reserved.