public class BlockPlacementStatusDefault extends Object implements org.apache.hadoop.hdfs.server.blockmanagement.BlockPlacementStatus
| Constructor and Description |
|---|
BlockPlacementStatusDefault(int currentRacks,
int requiredRacks,
int totalRacks) |
| Modifier and Type | Method and Description |
|---|---|
int |
getAdditionalReplicasRequired()
Return the number of additional replicas needed to ensure the block
placement policy is satisfied.
|
String |
getErrorDescription()
Get description info for log or printed in case replicas are failed to meet
requirement of placement policy
|
boolean |
isPlacementPolicySatisfied()
Boolean value to identify if replicas of this block satisfy requirement of
placement policy
|
public BlockPlacementStatusDefault(int currentRacks,
int requiredRacks,
int totalRacks)
public boolean isPlacementPolicySatisfied()
org.apache.hadoop.hdfs.server.blockmanagement.BlockPlacementStatusisPlacementPolicySatisfied in interface org.apache.hadoop.hdfs.server.blockmanagement.BlockPlacementStatuspublic String getErrorDescription()
org.apache.hadoop.hdfs.server.blockmanagement.BlockPlacementStatusgetErrorDescription in interface org.apache.hadoop.hdfs.server.blockmanagement.BlockPlacementStatuspublic int getAdditionalReplicasRequired()
org.apache.hadoop.hdfs.server.blockmanagement.BlockPlacementStatusgetAdditionalReplicasRequired in interface org.apache.hadoop.hdfs.server.blockmanagement.BlockPlacementStatusCopyright © 2008–2024 Apache Software Foundation. All rights reserved.