@Private @Evolving public class BlockRecoveryCommand extends DatanodeCommand
| Modifier and Type | Class | Description |
|---|---|---|
static class |
BlockRecoveryCommand.RecoveringBlock |
This is a block with locations from which it should be recovered
and the new generation stamp, which the block will have after
successful recovery.
|
static class |
BlockRecoveryCommand.RecoveringStripedBlock |
| Constructor | Description |
|---|---|
BlockRecoveryCommand() |
Create empty BlockRecoveryCommand.
|
BlockRecoveryCommand(int capacity) |
Create BlockRecoveryCommand with
the specified capacity for recovering blocks.
|
BlockRecoveryCommand(java.util.Collection<BlockRecoveryCommand.RecoveringBlock> blocks) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
add(BlockRecoveryCommand.RecoveringBlock block) |
Add recovering block to the command.
|
java.util.Collection<BlockRecoveryCommand.RecoveringBlock> |
getRecoveringBlocks() |
Return the list of recovering blocks.
|
java.lang.String |
toString() |
getActionpublic BlockRecoveryCommand()
public BlockRecoveryCommand(int capacity)
public BlockRecoveryCommand(java.util.Collection<BlockRecoveryCommand.RecoveringBlock> blocks)
public java.util.Collection<BlockRecoveryCommand.RecoveringBlock> getRecoveringBlocks()
public void add(BlockRecoveryCommand.RecoveringBlock block)
public java.lang.String toString()
toString in class ServerCommandCopyright © 2008–2025 Apache Software Foundation. All rights reserved.