Java 类org.apache.hadoop.hbase.zookeeper.ZooKeeperNodeTracker 实例源码

项目:ditb    文件:HRegionServer.java   
/**
 * Utilty method to wait indefinitely on a znode availability while checking
 * if the region server is shut down
 *
 * @param tracker znode tracker to use
 * @throws IOException          any IO exception, plus if the RS is stopped
 * @throws InterruptedException
 */
private void blockAndCheckIfStopped(ZooKeeperNodeTracker tracker)
    throws IOException, InterruptedException {
  while (tracker.blockUntilAvailable(this.msgInterval, false) == null) {
    if (this.stopped) {
      throw new IOException("Received the shutdown message while waiting.");
    }
  }
}
项目:LCIndex-HBase-0.94.16    文件:HRegionServer.java   
/**
 * Utilty method to wait indefinitely on a znode availability while checking if the region server
 * is shut down
 * @param tracker znode tracker to use
 * @throws IOException any IO exception, plus if the RS is stopped
 * @throws InterruptedException
 */
private void blockAndCheckIfStopped(ZooKeeperNodeTracker tracker) throws IOException,
    InterruptedException {
  while (tracker.blockUntilAvailable(this.msgInterval, false) == null) {
    if (this.stopped) {
      throw new IOException("Received the shutdown message while waiting.");
    }
  }
}
项目:pbase    文件:HRegionServer.java   
/**
 * Utilty method to wait indefinitely on a znode availability while checking
 * if the region server is shut down
 *
 * @param tracker znode tracker to use
 * @throws IOException          any IO exception, plus if the RS is stopped
 * @throws InterruptedException
 */
private void blockAndCheckIfStopped(ZooKeeperNodeTracker tracker)
        throws IOException, InterruptedException {
    while (tracker.blockUntilAvailable(this.msgInterval, false) == null) {
        if (this.stopped) {
            throw new IOException("Received the shutdown message while waiting.");
        }
    }
}
项目:HIndex    文件:HRegionServer.java   
/**
 * Utilty method to wait indefinitely on a znode availability while checking
 * if the region server is shut down
 * @param tracker znode tracker to use
 * @throws IOException any IO exception, plus if the RS is stopped
 * @throws InterruptedException
 */
private void blockAndCheckIfStopped(ZooKeeperNodeTracker tracker)
    throws IOException, InterruptedException {
  while (tracker.blockUntilAvailable(this.msgInterval, false) == null) {
    if (this.stopped) {
      throw new IOException("Received the shutdown message while waiting.");
    }
  }
}
项目:IRIndex    文件:HRegionServer.java   
/**
 * Utilty method to wait indefinitely on a znode availability while checking
 * if the region server is shut down
 * @param tracker znode tracker to use
 * @throws IOException any IO exception, plus if the RS is stopped
 * @throws InterruptedException
 */
private void blockAndCheckIfStopped(ZooKeeperNodeTracker tracker)
    throws IOException, InterruptedException {
  while (tracker.blockUntilAvailable(this.msgInterval, false) == null) {
    if (this.stopped) {
      throw new IOException("Received the shutdown message while waiting.");
    }
  }
}
项目:RStore    文件:HRegionServer.java   
/**
 * Utilty method to wait indefinitely on a znode availability while checking
 * if the region server is shut down
 * @param tracker znode tracker to use
 * @throws IOException any IO exception, plus if the RS is stopped
 * @throws InterruptedException
 */
private void blockAndCheckIfStopped(ZooKeeperNodeTracker tracker)
    throws IOException, InterruptedException {
  if (false == tracker.checkIfBaseNodeAvailable()) {
    String errorMsg = "Check the value configured in 'zookeeper.znode.parent'. "
        + "There could be a mismatch with the one configured in the master.";
    LOG.error(errorMsg);
    abort(errorMsg);
  }
  while (tracker.blockUntilAvailable(this.msgInterval, false) == null) {
    if (this.stopped) {
      throw new IOException("Received the shutdown message while waiting.");
    }
  }
}
项目:PyroDB    文件:HRegionServer.java   
/**
 * Utilty method to wait indefinitely on a znode availability while checking
 * if the region server is shut down
 * @param tracker znode tracker to use
 * @throws IOException any IO exception, plus if the RS is stopped
 * @throws InterruptedException
 */
private void blockAndCheckIfStopped(ZooKeeperNodeTracker tracker)
    throws IOException, InterruptedException {
  while (tracker.blockUntilAvailable(this.msgInterval, false) == null) {
    if (this.stopped) {
      throw new IOException("Received the shutdown message while waiting.");
    }
  }
}
项目:c5    文件:HRegionServer.java   
/**
 * Utilty method to wait indefinitely on a znode availability while checking
 * if the region server is shut down
 * @param tracker znode tracker to use
 * @throws IOException any IO exception, plus if the RS is stopped
 * @throws InterruptedException
 */
private void blockAndCheckIfStopped(ZooKeeperNodeTracker tracker)
    throws IOException, InterruptedException {
  while (tracker.blockUntilAvailable(this.msgInterval, false) == null) {
    if (this.stopped) {
      throw new IOException("Received the shutdown message while waiting.");
    }
  }
}
项目:HBase-Research    文件:HRegionServer.java   
/**
 * Utilty method to wait indefinitely on a znode availability while checking
 * if the region server is shut down
 * @param tracker znode tracker to use
 * @throws IOException any IO exception, plus if the RS is stopped
 * @throws InterruptedException
 */
private void blockAndCheckIfStopped(ZooKeeperNodeTracker tracker)
    throws IOException, InterruptedException {
  while (tracker.blockUntilAvailable(this.msgInterval, false) == null) {
    if (this.stopped) {
      throw new IOException("Received the shutdown message while waiting.");
    }
  }
}
项目:hbase-0.94.8-qod    文件:HRegionServer.java   
/**
 * Utilty method to wait indefinitely on a znode availability while checking
 * if the region server is shut down
 * @param tracker znode tracker to use
 * @throws IOException any IO exception, plus if the RS is stopped
 * @throws InterruptedException
 */
private void blockAndCheckIfStopped(ZooKeeperNodeTracker tracker)
    throws IOException, InterruptedException {
  while (tracker.blockUntilAvailable(this.msgInterval, false) == null) {
    if (this.stopped) {
      throw new IOException("Received the shutdown message while waiting.");
    }
  }
}
项目:hbase-0.94.8-qod    文件:HRegionServer.java   
/**
 * Utilty method to wait indefinitely on a znode availability while checking
 * if the region server is shut down
 * @param tracker znode tracker to use
 * @throws IOException any IO exception, plus if the RS is stopped
 * @throws InterruptedException
 */
private void blockAndCheckIfStopped(ZooKeeperNodeTracker tracker)
    throws IOException, InterruptedException {
  while (tracker.blockUntilAvailable(this.msgInterval, false) == null) {
    if (this.stopped) {
      throw new IOException("Received the shutdown message while waiting.");
    }
  }
}
项目:DominoHBase    文件:HRegionServer.java   
/**
 * Utilty method to wait indefinitely on a znode availability while checking
 * if the region server is shut down
 * @param tracker znode tracker to use
 * @throws IOException any IO exception, plus if the RS is stopped
 * @throws InterruptedException
 */
private void blockAndCheckIfStopped(ZooKeeperNodeTracker tracker)
    throws IOException, InterruptedException {
  while (tracker.blockUntilAvailable(this.msgInterval, false) == null) {
    if (this.stopped) {
      throw new IOException("Received the shutdown message while waiting.");
    }
  }
}
项目:hindex    文件:HRegionServer.java   
/**
 * Utilty method to wait indefinitely on a znode availability while checking
 * if the region server is shut down
 * @param tracker znode tracker to use
 * @throws IOException any IO exception, plus if the RS is stopped
 * @throws InterruptedException
 */
private void blockAndCheckIfStopped(ZooKeeperNodeTracker tracker)
    throws IOException, InterruptedException {
  while (tracker.blockUntilAvailable(this.msgInterval, false) == null) {
    if (this.stopped) {
      throw new IOException("Received the shutdown message while waiting.");
    }
  }
}