protected static class ZKRegistry.ZKController extends AbstractRegistry.RegistryController<ZKRegistry>
| 限定符和类型 | 字段和说明 |
|---|---|
protected org.apache.curator.x.async.AsyncCuratorFramework |
curator
zk异步Curator对象
|
clusters, configs, connected, daemon, datum, dirty, lastBackup, reconnectTask, registers, registry, tasks, waiter| 构造器和说明 |
|---|
ZKController(ZKRegistry registry)
构造函数
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
addEvent(List<ClusterEvent.ShardEvent> events,
ClusterEvent.ShardEventType type,
org.apache.curator.framework.recipes.cache.ChildData childData)
添加事件
|
protected AbstractRegistry.ClusterBooking |
createClusterBooking(URLKey key) |
protected AbstractRegistry.ConfigBooking |
createConfigBooking(URLKey key) |
protected CompletableFuture<Void> |
doConnect() |
protected CompletableFuture<Void> |
doDeregister(AbstractRegistry.Registion registion) |
protected CompletableFuture<Void> |
doDisconnect() |
protected CompletableFuture<Void> |
doRegister(AbstractRegistry.Registion registion) |
protected CompletableFuture<Void> |
doSubscribe(AbstractRegistry.ClusterBooking booking) |
protected CompletableFuture<Void> |
doSubscribe(AbstractRegistry.ConfigBooking booking) |
protected CompletableFuture<Void> |
doUnsubscribe(AbstractRegistry.ClusterBooking booking) |
protected CompletableFuture<Void> |
doUnsubscribe(AbstractRegistry.ConfigBooking booking) |
addBookingTask, addNewTask, backup, close, deregister, deregister, dirty, dispatch, doClose, doOpen, execute, execute, getPublisher, isOpen, open, reconnect, recover, register, restore, retry, subscribe, subscribe, subscribe, unsubscribe, unsubscribe, unsubscribe, unsubscribeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbrokenpublic ZKController(ZKRegistry registry)
registry - 注册中心protected AbstractRegistry.ClusterBooking createClusterBooking(URLKey key)
protected AbstractRegistry.ConfigBooking createConfigBooking(URLKey key)
protected CompletableFuture<Void> doConnect()
protected CompletableFuture<Void> doDisconnect()
protected CompletableFuture<Void> doRegister(AbstractRegistry.Registion registion)
protected CompletableFuture<Void> doDeregister(AbstractRegistry.Registion registion)
protected CompletableFuture<Void> doSubscribe(AbstractRegistry.ClusterBooking booking)
protected void addEvent(List<ClusterEvent.ShardEvent> events, ClusterEvent.ShardEventType type, org.apache.curator.framework.recipes.cache.ChildData childData)
events - 事件集合type - 事件类型childData - 节点数据protected CompletableFuture<Void> doUnsubscribe(AbstractRegistry.ClusterBooking booking)
protected CompletableFuture<Void> doSubscribe(AbstractRegistry.ConfigBooking booking)
protected CompletableFuture<Void> doUnsubscribe(AbstractRegistry.ConfigBooking booking)
Copyright © 2020. All rights reserved.