org.apache.hadoop.hdfs.server.balancer.Balancer的实例源码

项目:hadoop-EAR    文件dataxceiverServer.java   
dataxceiverServer(ServerSocket ss,Configuration conf,Datanode datanode) {

  this.ss = ss;
  this.datanode = datanode;

  this.maxXceiverCount = conf.getInt("dfs.datanode.max.xcievers",MAX_XCEIVER_COUNT);

  this.estimateBlockSize = conf.getLong("dfs.block.size",DEFAULT_BLOCK_SIZE);

  //set up parameter for cluster balancing
  this.balanceThrottler = new BlockBalanceThrottler(
    conf.getLong("dfs.balance.bandwidthPerSec",1024L*1024),Math.max(Balancer.MAX_NUM_CONCURRENT_MOVES,conf.getInt("dfs.balance.maxnumThreads",Balancer.MAX_NUM_CONCURRENT_MOVES)));
}
项目:hadoop-plus    文件dataxceiverServer.java   
/** Check if the block move can start. 
 * 
 * Return true if the thread quota is not exceeded and 
 * the counter is incremented; False otherwise.
 */
synchronized boolean acquire() {
  if (numThreads >= Balancer.MAX_NUM_CONCURRENT_MOVES) {
    return false;
  }
  numThreads++;
  return true;
}
项目:hops    文件dataxceiverServer.java   
/**
 * Check if the block move can start.
 * <p/>
 * Return true if the thread quota is not exceeded and
 * the counter is incremented; False otherwise.
 */
synchronized boolean acquire() {
  if (numThreads >= Balancer.MAX_NUM_CONCURRENT_MOVES) {
    return false;
  }
  numThreads++;
  return true;
}
项目:hadoop-TCP    文件dataxceiverServer.java   
/** Check if the block move can start. 
 * 
 * Return true if the thread quota is not exceeded and 
 * the counter is incremented; False otherwise.
 */
synchronized boolean acquire() {
  if (numThreads >= Balancer.MAX_NUM_CONCURRENT_MOVES) {
    return false;
  }
  numThreads++;
  return true;
}
项目:hadoop-on-lustre    文件dataxceiverServer.java   
/** Check if the block move can start. 
 * 
 * Return true if the thread quota is not exceeded and 
 * the counter is incremented; False otherwise.
 */
synchronized boolean acquire() {
  if (numThreads >= Balancer.MAX_NUM_CONCURRENT_MOVES) {
    return false;
  }
  numThreads++;
  return true;
}
项目:hardfs    文件dataxceiverServer.java   
/** Check if the block move can start. 
 * 
 * Return true if the thread quota is not exceeded and 
 * the counter is incremented; False otherwise.
 */
synchronized boolean acquire() {
  if (numThreads >= Balancer.MAX_NUM_CONCURRENT_MOVES) {
    return false;
  }
  numThreads++;
  return true;
}
项目:hadoop-on-lustre2    文件dataxceiverServer.java   
/** Check if the block move can start. 
 * 
 * Return true if the thread quota is not exceeded and 
 * the counter is incremented; False otherwise.
 */
synchronized boolean acquire() {
  if (numThreads >= Balancer.MAX_NUM_CONCURRENT_MOVES) {
    return false;
  }
  numThreads++;
  return true;
}
项目:cumulus    文件dataxceiverServer.java   
/** Check if the block move can start. 
 * 
 * Return true if the thread quota is not exceeded and 
 * the counter is incremented; False otherwise.
 */
synchronized boolean acquire() {
  if (numThreads >= Balancer.MAX_NUM_CONCURRENT_MOVES) {
    return false;
  }
  numThreads++;
  return true;
}
项目:RDFS    文件dataxceiverServer.java   
/** Check if the block move can start. 
 * 
 * Return true if the thread quota is not exceeded and 
 * the counter is incremented; False otherwise.
 */
synchronized boolean acquire() {
  if (numThreads >= Balancer.MAX_NUM_CONCURRENT_MOVES) {
    return false;
  }
  numThreads++;
  return true;
}
项目:hadoop-0.20    文件dataxceiverServer.java   
/** Check if the block move can start. 
 * 
 * Return true if the thread quota is not exceeded and 
 * the counter is incremented; False otherwise.
 */
synchronized boolean acquire() {
  if (numThreads >= Balancer.MAX_NUM_CONCURRENT_MOVES) {
    return false;
  }
  numThreads++;
  return true;
}
项目:hortonworks-extension    文件dataxceiverServer.java   
/** Check if the block move can start. 
 * 
 * Return true if the thread quota is not exceeded and 
 * the counter is incremented; False otherwise.
 */
synchronized boolean acquire() {
  if (numThreads >= Balancer.MAX_NUM_CONCURRENT_MOVES) {
    return false;
  }
  numThreads++;
  return true;
}
项目:hadoop-gpu    文件dataxceiverServer.java   
/** Check if the block move can start. 
 * 
 * Return true if the thread quota is not exceeded and 
 * the counter is incremented; False otherwise.
 */
synchronized boolean acquire() {
  if (numThreads >= Balancer.MAX_NUM_CONCURRENT_MOVES) {
    return false;
  }
  numThreads++;
  return true;
}

相关文章

买水果
比较全面的redis工具类
gson 反序列化到多态子类
java 版本的 mb_strwidth
JAVA 反转字符串的最快方法,大概比StringBuffer.reverse()性...
com.google.gson.internal.bind.ArrayTypeAdapter的实例源码...