@InterfaceAudience.Private public class MasterMaintenanceModeTracker extends ZooKeeperListener
watcher| 构造器和说明 |
|---|
MasterMaintenanceModeTracker(ZooKeeperWatcher watcher) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
isInMaintenanceMode() |
void |
nodeChildrenChanged(String path) |
void |
nodeCreated(String path) |
void |
nodeDeleted(String path) |
void |
start()
Starts the tracking of whether master is in Maintenance Mode.
|
getWatcher, nodeDataChangedpublic MasterMaintenanceModeTracker(ZooKeeperWatcher watcher)
public boolean isInMaintenanceMode()
public void start()
public void nodeCreated(String path)
nodeCreated 在类中 ZooKeeperListenerpublic void nodeDeleted(String path)
nodeDeleted 在类中 ZooKeeperListenerpublic void nodeChildrenChanged(String path)
nodeChildrenChanged 在类中 ZooKeeperListenerCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.