Class MasterMaintenanceModeTracker
java.lang.Object
org.apache.hadoop.hbase.zookeeper.ZKListener
org.apache.hadoop.hbase.zookeeper.MasterMaintenanceModeTracker
Tracks the master Maintenance Mode via ZK. Unused. Used to be set by hbck to prevent concurrent
splits/merges, but those use PV2 now and HBCK2 uses it's own service, so no longer an issue. Left
in, in case we need to use this for the incomplete parts of HBCK2...
-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.zookeeper.ZKListener
watcher
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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 deletedvoid
start()
Starts the tracking of whether master is in Maintenance Mode.private void
update()
private void
Methods inherited from class org.apache.hadoop.hbase.zookeeper.ZKListener
getWatcher, nodeDataChanged
-
Field Details
-
hasChildren
-
-
Constructor Details
-
MasterMaintenanceModeTracker
-
-
Method Details
-
isInMaintenanceMode
-
update
-
update
-
start
Starts the tracking of whether master is in Maintenance Mode. -
nodeCreated
Description copied from class:ZKListener
Called when a new node has been created.- Overrides:
nodeCreated
in classZKListener
- Parameters:
path
- full path of the new node
-
nodeDeleted
Description copied from class:ZKListener
Called when a node has been deleted- Overrides:
nodeDeleted
in classZKListener
- Parameters:
path
- full path of the deleted node
-
nodeChildrenChanged
Description copied from class:ZKListener
Called when an existing node has a child node added or removed.- Overrides:
nodeChildrenChanged
in classZKListener
- Parameters:
path
- full path of the node whose children have changed
-