Class BlockMovementAttemptFinished
java.lang.Object
org.apache.hadoop.hdfs.server.common.sps.BlockMovementAttemptFinished
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 Summary
ConstructorsConstructorDescriptionBlockMovementAttemptFinished(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. -
Method Summary
-
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- blocksrc- src datanodetarget- target datanodetargetType- target storage typestatus- 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
- Returns:
- block movement status code.
-
toString
-