Java 类org.apache.hadoop.hdfs.server.namenode.BlockPlacementPolicyDefault 实例源码

项目:hadoop-EAR    文件:TestReplication.java   
@Test
public void testReplicationSimulatedStoragDefault() throws IOException {
  runReplication(true, BlockPlacementPolicyDefault.class);
}
项目:hadoop-EAR    文件:TestReplication.java   
@Test
public void testReplicationDefault() throws IOException {
  runReplication(false, BlockPlacementPolicyDefault.class);
}
项目:hadoop-EAR    文件:TestReplication.java   
@Test
public void testPendingReplicationRetryDefault() throws IOException {
  runPendingReplicationRetry(BlockPlacementPolicyDefault.class);
}
项目:hadoop-EAR    文件:TestReplication.java   
@Test
public void testPendingReplicationRetryInlineChecksum() throws IOException {
  pendingReplicationRetryInternal(true, BlockPlacementPolicyDefault.class);
}
项目:hadoop-EAR    文件:Balancer.java   
private void checkReplicationPolicyCompatibility(Configuration conf) {
  if (!(BlockPlacementPolicy.getInstance(conf, null, null, null, null, null)
      instanceof BlockPlacementPolicyDefault)) {
    throw new IllegalArgumentException("Configuration lacks BlockPlacementPolicyDefault");
  }
}
项目:cumulus    文件:Balancer.java   
private void checkReplicationPolicyCompatibility(Configuration conf) throws UnsupportedActionException {
  if (BlockPlacementPolicy.getInstance(conf, null, null).getClass() != 
      BlockPlacementPolicyDefault.class) {
    throw new UnsupportedActionException("Balancer without BlockPlacementPolicyDefault");
  }
}
项目:RDFS    文件:Balancer.java   
private void checkReplicationPolicyCompatibility(Configuration conf) {
  if (!(BlockPlacementPolicy.getInstance(conf, null, null, null, null, null)
      instanceof BlockPlacementPolicyDefault)) {
    throw new IllegalArgumentException("Configuration lacks BlockPlacementPolicyDefault");
  }
}