@InterfaceAudience.Private public class MasterMaintenanceModeTracker extends ZKListener
watcher| 构造器和说明 |
|---|
MasterMaintenanceModeTracker(ZKWatcher watcher) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
isInMaintenanceMode() |
void |
nodeChildrenChanged(String path)
Called when an existing node has a child node added or removed.
|
void |
nodeCreated(String path)
Called when a new node has been created.
|
void |
nodeDeleted(String path)
Called when a node has been deleted
|
void |
start()
Starts the tracking of whether master is in Maintenance Mode.
|
getWatcher, nodeDataChangedpublic MasterMaintenanceModeTracker(ZKWatcher watcher)
public boolean isInMaintenanceMode()
public void start()
public void nodeCreated(String path)
ZKListenernodeCreated 在类中 ZKListenerpath - full path of the new nodepublic void nodeDeleted(String path)
ZKListenernodeDeleted 在类中 ZKListenerpath - full path of the deleted nodepublic void nodeChildrenChanged(String path)
ZKListenernodeChildrenChanged 在类中 ZKListenerpath - full path of the node whose children have changedCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.