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, Block blk, org.apache.hadoop.security.token.Token<BlockTokenIdentifier> blockToken)
          Send OP_BLOCK_CHECKSUM
static void opCopyBlock(DataOutputStream out, Block blk, org.apache.hadoop.security.token.Token<BlockTokenIdentifier> blockToken)
          Send OP_COPY_BLOCK
static void opReadBlock(DataOutputStream out, Block blk, long blockOffset, long blockLen, String clientName, org.apache.hadoop.security.token.Token<BlockTokenIdentifier> blockToken)
          Send OP_READ_BLOCK
static void opReplaceBlock(DataOutputStream out, Block blk, String storageId, DatanodeInfo src, org.apache.hadoop.security.token.Token<BlockTokenIdentifier> blockToken)
          Send OP_REPLACE_BLOCK
static void opWriteBlock(DataOutputStream out, Block blk, int pipelineSize, DataTransferProtocol.BlockConstructionStage stage, long newGs, long minBytesRcvd, long maxBytesRcvd, String client, DatanodeInfo src, DatanodeInfo[] targets, org.apache.hadoop.security.token.Token<BlockTokenIdentifier> blockToken)
          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,
                               Block blk,
                               long blockOffset,
                               long blockLen,
                               String clientName,
                               org.apache.hadoop.security.token.Token<BlockTokenIdentifier> blockToken)
                        throws IOException
Send OP_READ_BLOCK

Throws:
IOException

opWriteBlock

public static void opWriteBlock(DataOutputStream out,
                                Block blk,
                                int pipelineSize,
                                DataTransferProtocol.BlockConstructionStage stage,
                                long newGs,
                                long minBytesRcvd,
                                long maxBytesRcvd,
                                String client,
                                DatanodeInfo src,
                                DatanodeInfo[] targets,
                                org.apache.hadoop.security.token.Token<BlockTokenIdentifier> blockToken)
                         throws IOException
Send OP_WRITE_BLOCK

Throws:
IOException

opReplaceBlock

public static void opReplaceBlock(DataOutputStream out,
                                  Block blk,
                                  String storageId,
                                  DatanodeInfo src,
                                  org.apache.hadoop.security.token.Token<BlockTokenIdentifier> blockToken)
                           throws IOException
Send OP_REPLACE_BLOCK

Throws:
IOException

opCopyBlock

public static void opCopyBlock(DataOutputStream out,
                               Block blk,
                               org.apache.hadoop.security.token.Token<BlockTokenIdentifier> blockToken)
                        throws IOException
Send OP_COPY_BLOCK

Throws:
IOException

opBlockChecksum

public static void opBlockChecksum(DataOutputStream out,
                                   Block blk,
                                   org.apache.hadoop.security.token.Token<BlockTokenIdentifier> blockToken)
                            throws IOException
Send OP_BLOCK_CHECKSUM

Throws:
IOException


Copyright © 2009 The Apache Software Foundation