|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ReplicaInPipelineInterface
This defines the interface of a replica in Pipeline that's being written to
Method Summary | |
---|---|
ReplicaOutputStreams |
createStreams(boolean isCreate,
org.apache.hadoop.util.DataChecksum requestedChecksum)
Create output streams for writing to this replica, one for block file and one for CRC file |
long |
getBytesAcked()
Get the number of bytes acked |
org.apache.hadoop.hdfs.server.datanode.ChunkChecksum |
getLastChecksumAndDataLen()
gets the last chunk checksum and the length of the block corresponding to that checksum |
void |
setBytesAcked(long bytesAcked)
Set the number bytes that have acked |
void |
setLastChecksumAndDataLen(long dataLength,
byte[] lastChecksum)
store the checksum for the last chunk along with the data length |
void |
setNumBytes(long bytesReceived)
Set the number of bytes received |
Methods inherited from interface org.apache.hadoop.hdfs.server.datanode.Replica |
---|
getBlockId, getBytesOnDisk, getGenerationStamp, getNumBytes, getState, getVisibleLength |
Method Detail |
---|
void setNumBytes(long bytesReceived)
bytesReceived
- number of bytes receivedlong getBytesAcked()
void setBytesAcked(long bytesAcked)
bytesAcked
- void setLastChecksumAndDataLen(long dataLength, byte[] lastChecksum)
dataLength
- number of bytes on disklastChecksum
- - checksum bytes for the last chunkorg.apache.hadoop.hdfs.server.datanode.ChunkChecksum getLastChecksumAndDataLen()
ReplicaOutputStreams createStreams(boolean isCreate, org.apache.hadoop.util.DataChecksum requestedChecksum) throws IOException
isCreate
- if it is for creationrequestedChecksum
- the checksum the writer would prefer to use
IOException
- if any error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |