public class ClusterNodeHandler extends Object implements INodeHandler
| 构造器和说明 |
|---|
ClusterNodeHandler(ClusterProperties clusterProperties,
ZookeeperProperties zookeeperProperties,
IClusterNodeManager clusterNodeManager) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
handler(org.apache.curator.framework.CuratorFramework client,
org.apache.curator.framework.recipes.cache.PathChildrenCacheEvent event) |
void |
init(ZookeeperClientManager clientManager) |
void |
stateChanged(org.apache.curator.framework.CuratorFramework client,
org.apache.curator.framework.state.ConnectionState newState) |
boolean |
support(org.apache.curator.framework.recipes.cache.PathChildrenCacheEvent event) |
public ClusterNodeHandler(ClusterProperties clusterProperties, ZookeeperProperties zookeeperProperties, IClusterNodeManager clusterNodeManager)
public void init(ZookeeperClientManager clientManager)
init 在接口中 INodeHandlerpublic boolean support(org.apache.curator.framework.recipes.cache.PathChildrenCacheEvent event)
support 在接口中 INodeHandlerpublic void handler(org.apache.curator.framework.CuratorFramework client,
org.apache.curator.framework.recipes.cache.PathChildrenCacheEvent event)
handler 在接口中 INodeHandlerpublic void stateChanged(org.apache.curator.framework.CuratorFramework client,
org.apache.curator.framework.state.ConnectionState newState)
stateChanged 在接口中 org.apache.curator.framework.state.ConnectionStateListenerCopyright © 2022. All rights reserved.