Class Receiver
java.lang.Object
org.apache.hadoop.hdfs.protocol.datatransfer.Receiver
- All Implemented Interfaces:
org.apache.hadoop.hdfs.protocol.datatransfer.DataTransferProtocol
@Private
@Evolving
public abstract class Receiver
extends Object
implements org.apache.hadoop.hdfs.protocol.datatransfer.DataTransferProtocol
Receiver
-
Field Summary
FieldsFields inherited from interface org.apache.hadoop.hdfs.protocol.datatransfer.DataTransferProtocol
DATA_TRANSFER_VERSION, LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidInitialize a receiver for DataTransferProtocol with a socket.protected final voidprocessOp(org.apache.hadoop.hdfs.protocol.datatransfer.Op op) Process op by the corresponding method.protected final org.apache.hadoop.hdfs.protocol.datatransfer.OpreadOp()Read an Op.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.hdfs.protocol.datatransfer.DataTransferProtocol
blockChecksum, blockGroupChecksum, copyBlock, readBlock, releaseShortCircuitFds, replaceBlock, requestShortCircuitFds, requestShortCircuitShm, transferBlock, writeBlock
-
Field Details
-
in
-
-
Constructor Details
-
Receiver
protected Receiver(org.apache.hadoop.tracing.Tracer tracer)
-
-
Method Details
-
initialize
Initialize a receiver for DataTransferProtocol with a socket. -
readOp
Read an Op. It also checks protocol version.- Throws:
IOException
-
processOp
protected final void processOp(org.apache.hadoop.hdfs.protocol.datatransfer.Op op) throws IOException Process op by the corresponding method.- Throws:
IOException
-