Esempio n. 1
0
 /**
  * Gets the meta region location, if available. Does not block.
  *
  * @param zkw
  * @param replicaId
  * @return server name
  */
 public ServerName getMetaRegionLocation(final ZooKeeperWatcher zkw, int replicaId) {
   try {
     RegionState state = getMetaRegionState(zkw, replicaId);
     return state.isOpened() ? state.getServerName() : null;
   } catch (KeeperException ke) {
     return null;
   }
 }