Class BlockStorageMovementCommand.BlockMovingInfo
java.lang.Object
org.apache.hadoop.hdfs.server.protocol.BlockStorageMovementCommand.BlockMovingInfo
- Enclosing class:
- BlockStorageMovementCommand
Stores block to storage info that can be used for block movement.
-
Constructor Summary
ConstructorsConstructorDescriptionBlockMovingInfo(org.apache.hadoop.hdfs.protocol.Block block, org.apache.hadoop.hdfs.protocol.DatanodeInfo sourceDnInfo, org.apache.hadoop.hdfs.protocol.DatanodeInfo targetDnInfo, org.apache.hadoop.fs.StorageType srcStorageType, org.apache.hadoop.fs.StorageType targetStorageType) Block to storage info constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBlock(org.apache.hadoop.hdfs.protocol.Block block) org.apache.hadoop.hdfs.protocol.BlockgetBlock()org.apache.hadoop.hdfs.protocol.DatanodeInfoorg.apache.hadoop.fs.StorageTypeorg.apache.hadoop.hdfs.protocol.DatanodeInfoorg.apache.hadoop.fs.StorageTypetoString()
-
Constructor Details
-
BlockMovingInfo
public BlockMovingInfo(org.apache.hadoop.hdfs.protocol.Block block, org.apache.hadoop.hdfs.protocol.DatanodeInfo sourceDnInfo, org.apache.hadoop.hdfs.protocol.DatanodeInfo targetDnInfo, org.apache.hadoop.fs.StorageType srcStorageType, org.apache.hadoop.fs.StorageType targetStorageType) Block to storage info constructor.- Parameters:
block- block infosourceDnInfo- node that can be the source of a block movesrcStorageType- type of source storage media
-
-
Method Details
-
addBlock
public void addBlock(org.apache.hadoop.hdfs.protocol.Block block) -
getBlock
public org.apache.hadoop.hdfs.protocol.Block getBlock() -
getSource
public org.apache.hadoop.hdfs.protocol.DatanodeInfo getSource() -
getTarget
public org.apache.hadoop.hdfs.protocol.DatanodeInfo getTarget() -
getTargetStorageType
public org.apache.hadoop.fs.StorageType getTargetStorageType() -
getSourceStorageType
public org.apache.hadoop.fs.StorageType getSourceStorageType() -
toString
-