public static interface DiskBalancer.BlockMover
Modifier and Type | Method and Description |
---|---|
void |
copyBlocks(DiskBalancer.VolumePair pair,
org.apache.hadoop.hdfs.server.datanode.DiskBalancerWorkItem item)
Copies blocks from a set of volumes.
|
org.apache.hadoop.hdfs.server.datanode.fsdataset.FsDatasetSpi |
getDataset()
Returns a pointer to the current dataset we are operating against.
|
long |
getElapsedSeconds()
Number of seconds elapsed.
|
long |
getStartTime()
Returns time when this plan started executing.
|
void |
setExitFlag()
Tells copyBlocks to exit from the copy routine.
|
void |
setRunnable()
Begin the actual copy operations.
|
void copyBlocks(DiskBalancer.VolumePair pair, org.apache.hadoop.hdfs.server.datanode.DiskBalancerWorkItem item)
pair
- - Source and Destination Volumes.item
- - Number of bytes to move from volumes.void setRunnable()
void setExitFlag()
org.apache.hadoop.hdfs.server.datanode.fsdataset.FsDatasetSpi getDataset()
long getStartTime()
long getElapsedSeconds()
Copyright © 2008–2020 Apache Software Foundation. All rights reserved.