@InterfaceAudience.Private @InterfaceStability.Evolving public class BlockRecoveryCommand extends DatanodeCommand
Modifier and Type | Class and 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.
|
Constructor and Description |
---|
BlockRecoveryCommand()
Create empty BlockRecoveryCommand.
|
BlockRecoveryCommand(Collection<BlockRecoveryCommand.RecoveringBlock> blocks) |
BlockRecoveryCommand(int capacity)
Create BlockRecoveryCommand with
the specified capacity for recovering blocks.
|
Modifier and Type | Method and Description |
---|---|
void |
add(BlockRecoveryCommand.RecoveringBlock block)
Add recovering block to the command.
|
Collection<BlockRecoveryCommand.RecoveringBlock> |
getRecoveringBlocks()
Return the list of recovering blocks.
|
String |
toString() |
getAction
public BlockRecoveryCommand()
public BlockRecoveryCommand(int capacity)
public BlockRecoveryCommand(Collection<BlockRecoveryCommand.RecoveringBlock> blocks)
public Collection<BlockRecoveryCommand.RecoveringBlock> getRecoveringBlocks()
public void add(BlockRecoveryCommand.RecoveringBlock block)
Copyright © 2013 Apache Software Foundation. All rights reserved.