org.apache.hadoop.hdfs.server.protocol
Interface InterDatanodeProtocol

All Superinterfaces:
org.apache.hadoop.ipc.VersionedProtocol
All Known Implementing Classes:
DataNode

@InterfaceAudience.Private
public interface InterDatanodeProtocol
extends org.apache.hadoop.ipc.VersionedProtocol

An inter-datanode protocol for updating generation stamp


Field Summary
static org.apache.commons.logging.Log LOG
           
static long versionID
          5: getBlockMetaDataInfo(), updateBlock() removed.
 
Method Summary
 ReplicaRecoveryInfo initReplicaRecovery(BlockRecoveryCommand.RecoveringBlock rBlock)
          Initialize a replica recovery.
 Block updateReplicaUnderRecovery(Block oldBlock, long recoveryId, long newLength)
          Update replica with the new generation stamp and length.
 
Methods inherited from interface org.apache.hadoop.ipc.VersionedProtocol
getProtocolVersion
 

Field Detail

LOG

static final org.apache.commons.logging.Log LOG

versionID

static final long versionID
5: getBlockMetaDataInfo(), updateBlock() removed.

See Also:
Constant Field Values
Method Detail

initReplicaRecovery

ReplicaRecoveryInfo initReplicaRecovery(BlockRecoveryCommand.RecoveringBlock rBlock)
                                        throws IOException
Initialize a replica recovery.

Returns:
actual state of the replica on this data-node or null if data-node does not have the replica.
Throws:
IOException

updateReplicaUnderRecovery

Block updateReplicaUnderRecovery(Block oldBlock,
                                 long recoveryId,
                                 long newLength)
                                 throws IOException
Update replica with the new generation stamp and length.

Throws:
IOException


Copyright © 2009 The Apache Software Foundation