org.apache.hadoop.hdfs.server.blockmanagement
Class BlockPlacementStatusDefault

java.lang.Object
  extended by org.apache.hadoop.hdfs.server.blockmanagement.BlockPlacementStatusDefault
All Implemented Interfaces:
org.apache.hadoop.hdfs.server.blockmanagement.BlockPlacementStatus

public class BlockPlacementStatusDefault
extends Object
implements org.apache.hadoop.hdfs.server.blockmanagement.BlockPlacementStatus


Constructor Summary
BlockPlacementStatusDefault(int currentRacks, int requiredRacks)
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockPlacementStatusDefault

public BlockPlacementStatusDefault(int currentRacks,
                                   int requiredRacks)
Method Detail

isPlacementPolicySatisfied

public boolean isPlacementPolicySatisfied()
Description copied from interface: org.apache.hadoop.hdfs.server.blockmanagement.BlockPlacementStatus
Boolean value to identify if replicas of this block satisfy requirement of placement policy

Specified by:
isPlacementPolicySatisfied in interface org.apache.hadoop.hdfs.server.blockmanagement.BlockPlacementStatus
Returns:
if replicas satisfy placement policy's requirement

getErrorDescription

public String getErrorDescription()
Description copied from interface: org.apache.hadoop.hdfs.server.blockmanagement.BlockPlacementStatus
Get description info for log or printed in case replicas are failed to meet requirement of placement policy

Specified by:
getErrorDescription in interface org.apache.hadoop.hdfs.server.blockmanagement.BlockPlacementStatus
Returns:
description in case replicas are failed to meet requirement of placement policy


Copyright © 2014 Apache Software Foundation. All Rights Reserved.