org.apache.hadoop.hdfs.protocol
Class DataTransferProtocol.Sender

java.lang.Object
  extended by org.apache.hadoop.hdfs.protocol.DataTransferProtocol.Sender
Enclosing interface:
DataTransferProtocol

@InterfaceAudience.Private
@InterfaceStability.Evolving
public static class DataTransferProtocol.Sender
extends Object

Sender


Constructor Summary
DataTransferProtocol.Sender()
           
 
Method Summary
static void op(DataOutputStream out, DataTransferProtocol.Op op)
          Initialize a operation.
static void opBlockChecksum(DataOutputStream out, long blockId, long blockGs, BlockAccessToken accesstoken)
          Send OP_BLOCK_CHECKSUM
static void opCopyBlock(DataOutputStream out, long blockId, long blockGs, BlockAccessToken accesstoken)
          Send OP_COPY_BLOCK
static void opReadBlock(DataOutputStream out, long blockId, long blockGs, long blockOffset, long blockLen, String clientName, BlockAccessToken accessToken)
          Send OP_READ_BLOCK
static void opReplaceBlock(DataOutputStream out, long blockId, long blockGs, String storageId, DatanodeInfo src, BlockAccessToken accesstoken)
          Send OP_REPLACE_BLOCK
static void opWriteBlock(DataOutputStream out, long blockId, long blockGs, int pipelineSize, DataTransferProtocol.BlockConstructionStage stage, long newGs, long minBytesRcvd, long maxBytesRcvd, String client, DatanodeInfo src, DatanodeInfo[] targets, BlockAccessToken accesstoken)
          Send OP_WRITE_BLOCK
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataTransferProtocol.Sender

public DataTransferProtocol.Sender()
Method Detail

op

public static void op(DataOutputStream out,
                      DataTransferProtocol.Op op)
               throws IOException
Initialize a operation.

Throws:
IOException

opReadBlock

public static void opReadBlock(DataOutputStream out,
                               long blockId,
                               long blockGs,
                               long blockOffset,
                               long blockLen,
                               String clientName,
                               BlockAccessToken accessToken)
                        throws IOException
Send OP_READ_BLOCK

Throws:
IOException

opWriteBlock

public static void opWriteBlock(DataOutputStream out,
                                long blockId,
                                long blockGs,
                                int pipelineSize,
                                DataTransferProtocol.BlockConstructionStage stage,
                                long newGs,
                                long minBytesRcvd,
                                long maxBytesRcvd,
                                String client,
                                DatanodeInfo src,
                                DatanodeInfo[] targets,
                                BlockAccessToken accesstoken)
                         throws IOException
Send OP_WRITE_BLOCK

Throws:
IOException

opReplaceBlock

public static void opReplaceBlock(DataOutputStream out,
                                  long blockId,
                                  long blockGs,
                                  String storageId,
                                  DatanodeInfo src,
                                  BlockAccessToken accesstoken)
                           throws IOException
Send OP_REPLACE_BLOCK

Throws:
IOException

opCopyBlock

public static void opCopyBlock(DataOutputStream out,
                               long blockId,
                               long blockGs,
                               BlockAccessToken accesstoken)
                        throws IOException
Send OP_COPY_BLOCK

Throws:
IOException

opBlockChecksum

public static void opBlockChecksum(DataOutputStream out,
                                   long blockId,
                                   long blockGs,
                                   BlockAccessToken accesstoken)
                            throws IOException
Send OP_BLOCK_CHECKSUM

Throws:
IOException


Copyright © 2009 The Apache Software Foundation