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.BlockPlacementStatus
isPlacementPolicySatisfied
in interface org.apache.hadoop.hdfs.server.blockmanagement.BlockPlacementStatus
public String getErrorDescription()
org.apache.hadoop.hdfs.server.blockmanagement.BlockPlacementStatus
getErrorDescription
in interface org.apache.hadoop.hdfs.server.blockmanagement.BlockPlacementStatus
public int getAdditionalReplicasRequired()
org.apache.hadoop.hdfs.server.blockmanagement.BlockPlacementStatus
getAdditionalReplicasRequired
in interface org.apache.hadoop.hdfs.server.blockmanagement.BlockPlacementStatus
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.