DiskBalancer.DiskBalancerMoverpublic static interface DiskBalancer.BlockMover
| Modifier and Type | Method | Description |
|---|---|---|
void |
copyBlocks(DiskBalancer.VolumePair pair,
org.apache.hadoop.hdfs.server.datanode.DiskBalancerWorkItem item) |
Copies blocks from a set of volumes.
|
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()
FsDatasetSpi getDataset()
long getStartTime()
long getElapsedSeconds()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.