org.apache.hadoop.hdfs.server.protocol
Class BlockRecoveryCommand.RecoveringBlock
java.lang.Object
org.apache.hadoop.hdfs.protocol.LocatedBlock
org.apache.hadoop.hdfs.server.protocol.BlockRecoveryCommand.RecoveringBlock
- All Implemented Interfaces:
- org.apache.hadoop.io.Writable
- Enclosing class:
- BlockRecoveryCommand
@InterfaceAudience.Private
@InterfaceStability.Evolving
public static class BlockRecoveryCommand.RecoveringBlock
- extends LocatedBlock
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.
The new generation stamp of the block, also plays role of the recovery id.
BlockRecoveryCommand.RecoveringBlock
public BlockRecoveryCommand.RecoveringBlock()
- Create empty RecoveringBlock.
BlockRecoveryCommand.RecoveringBlock
public BlockRecoveryCommand.RecoveringBlock(Block b,
DatanodeInfo[] locs,
long newGS)
- Create RecoveringBlock.
getNewGenerationStamp
public long getNewGenerationStamp()
- Return the new generation stamp of the block,
which also plays role of the recovery id.
write
public void write(DataOutput out)
throws IOException
- Specified by:
write
in interface org.apache.hadoop.io.Writable
- Overrides:
write
in class LocatedBlock
- Throws:
IOException
readFields
public void readFields(DataInput in)
throws IOException
- Specified by:
readFields
in interface org.apache.hadoop.io.Writable
- Overrides:
readFields
in class LocatedBlock
- Throws:
IOException
Copyright © 2009 The Apache Software Foundation