public class BlockStorageMovementCommand extends DatanodeCommand
ExternalSPSBlockMoveTaskHandler
service. Later, ExternalSPSBlockMoveTaskHandler will schedule block movement
tasks for these blocks and monitors the completion of each task. After the
block movement attempt is finished(with success or failure) this DataNode
will send response back to NameNode about the block movement attempt
finished details.| Modifier and Type | Class | Description |
|---|---|---|
static class |
BlockStorageMovementCommand.BlockMovingInfo |
Stores block to storage info that can be used for block movement.
|
| Constructor | Description |
|---|---|
BlockStorageMovementCommand(int action,
java.lang.String blockPoolId,
java.util.Collection<BlockStorageMovementCommand.BlockMovingInfo> blockMovingInfos) |
Block storage movement command constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Collection<BlockStorageMovementCommand.BlockMovingInfo> |
getBlockMovingTasks() |
Returns the list of blocks to be moved.
|
java.lang.String |
getBlockPoolId() |
Returns block pool ID.
|
getAction, toStringpublic BlockStorageMovementCommand(int action,
java.lang.String blockPoolId,
java.util.Collection<BlockStorageMovementCommand.BlockMovingInfo> blockMovingInfos)
action - protocol specific actionblockMovingInfos - block to storage info that will be used for movementpublic java.lang.String getBlockPoolId()
public java.util.Collection<BlockStorageMovementCommand.BlockMovingInfo> getBlockMovingTasks()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.