Class BlockMovementAttemptFinished

java.lang.Object
org.apache.hadoop.hdfs.server.common.sps.BlockMovementAttemptFinished

@Private @Evolving public class BlockMovementAttemptFinished extends Object
This class represents status from a block movement task. This will have the information of the task which was successful or failed due to errors.
  • Constructor Details

    • BlockMovementAttemptFinished

      public BlockMovementAttemptFinished(org.apache.hadoop.hdfs.protocol.Block block, org.apache.hadoop.hdfs.protocol.DatanodeInfo src, org.apache.hadoop.hdfs.protocol.DatanodeInfo target, org.apache.hadoop.fs.StorageType targetType, BlockMovementStatus status)
      Construct movement attempt finished info.
      Parameters:
      block - block
      src - src datanode
      target - target datanode
      targetType - target storage type
      status - movement status
  • Method Details

    • getBlock

      public org.apache.hadoop.hdfs.protocol.Block getBlock()
      Returns:
      details of the block, which attempted to move from src to target node.
    • getTargetDatanode

      public org.apache.hadoop.hdfs.protocol.DatanodeInfo getTargetDatanode()
      Returns:
      the target datanode where it moved the block.
    • getTargetType

      public org.apache.hadoop.fs.StorageType getTargetType()
      Returns:
      target storage type.
    • getStatus

      public BlockMovementStatus getStatus()
      Returns:
      block movement status code.
    • toString

      public String toString()
      Overrides:
      toString in class Object