public int getActiveMasterInfoPort() {
    return activeMasterManager.getActiveMasterInfoPort();
  }
Returns info port of active master or 0 if any exception occurs.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java