@InterfaceAudience.Private public class MasterMaintenanceModeTracker extends ZooKeeperListener
watcher| Constructor and Description |
|---|
MasterMaintenanceModeTracker(ZooKeeperWatcher watcher) |
| Modifier and Type | Method and Description |
|---|---|
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 in class ZooKeeperListenerpublic void nodeDeleted(String path)
nodeDeleted in class ZooKeeperListenerpublic void nodeChildrenChanged(String path)
nodeChildrenChanged in class ZooKeeperListenerCopyright © 2007–2017 The Apache Software Foundation. All rights reserved.