Class ActiveMasterManager

java.lang.Object
org.apache.hadoop.hbase.zookeeper.ZKListener
org.apache.hadoop.hbase.master.ActiveMasterManager

@Private public class ActiveMasterManager extends ZKListener
Handles everything on master-side related to master election. Keeps track of currently active master and registered backup masters.

Listens and responds to ZooKeeper notifications on the master znodes, both nodeCreated and nodeDeleted.

Contains blocking methods which will hold up backup masters, waiting for the active master to fail.

This class is instantiated in the HMaster constructor and the method #blockUntilBecomingActiveMaster() is called to wait until becoming the active master of the cluster.