org.apache.hadoop.hdfs.protocol
Interface DataTransferProtocol


@InterfaceAudience.Private
@InterfaceStability.Evolving
public interface DataTransferProtocol

Transfer data to/from datanode using a streaming protocol.


Nested Class Summary
static class DataTransferProtocol.BlockConstructionStage
           
static class DataTransferProtocol.Op
          Operation
static class DataTransferProtocol.PipelineAck
          reply
static class DataTransferProtocol.Receiver
          Receiver
static class DataTransferProtocol.Sender
          Sender
static class DataTransferProtocol.Status
          Status
 
Field Summary
static int DATA_TRANSFER_VERSION
          Version for data transfers between clients and datanodes This should change when serialization of DatanodeInfo, not just when protocol changes.
static byte OP_BLOCK_CHECKSUM
          Deprecated. Deprecated at 0.21. Use Op.BLOCK_CHECKSUM instead.
static byte OP_COPY_BLOCK
          Deprecated. Deprecated at 0.21. Use Op.COPY_BLOCK instead.
static byte OP_READ_BLOCK
          Deprecated. Deprecated at 0.21. Use Op.READ_BLOCK instead.
static byte OP_READ_METADATA
          Deprecated. As of version 15, OP_READ_METADATA is no longer supported.
static byte OP_REPLACE_BLOCK
          Deprecated. Deprecated at 0.21. Use Op.REPLACE_BLOCK instead.
static int OP_STATUS_CHECKSUM_OK
          Deprecated. Deprecated at 0.21. Use Status.CHECKSUM_OK instead.
static int OP_STATUS_ERROR
          Deprecated. Deprecated at 0.21. Use Status.ERROR instead.
static int OP_STATUS_ERROR_ACCESS_TOKEN
          Deprecated. Deprecated at 0.21. Use Status.ERROR_ACCESS_TOKEN instead.
static int OP_STATUS_ERROR_CHECKSUM
          Deprecated. Deprecated at 0.21. Use Status.ERROR_CHECKSUM instead.
static int OP_STATUS_ERROR_EXISTS
          Deprecated. Deprecated at 0.21. Use Status.ERROR_EXISTS instead.
static int OP_STATUS_ERROR_INVALID
          Deprecated. Deprecated at 0.21. Use Status.ERROR_INVALID instead.
static int OP_STATUS_SUCCESS
          Deprecated. Deprecated at 0.21. Use Status.SUCCESS instead.
static byte OP_WRITE_BLOCK
          Deprecated. Deprecated at 0.21. Use Op.WRITE_BLOCK instead.
 

Field Detail

DATA_TRANSFER_VERSION

static final int DATA_TRANSFER_VERSION
Version for data transfers between clients and datanodes This should change when serialization of DatanodeInfo, not just when protocol changes. It is not very obvious.

See Also:
Constant Field Values

OP_WRITE_BLOCK

@Deprecated
static final byte OP_WRITE_BLOCK
Deprecated. Deprecated at 0.21. Use Op.WRITE_BLOCK instead.

OP_READ_BLOCK

@Deprecated
static final byte OP_READ_BLOCK
Deprecated. Deprecated at 0.21. Use Op.READ_BLOCK instead.

OP_READ_METADATA

@Deprecated
static final byte OP_READ_METADATA
Deprecated. As of version 15, OP_READ_METADATA is no longer supported.

OP_REPLACE_BLOCK

@Deprecated
static final byte OP_REPLACE_BLOCK
Deprecated. Deprecated at 0.21. Use Op.REPLACE_BLOCK instead.

OP_COPY_BLOCK

@Deprecated
static final byte OP_COPY_BLOCK
Deprecated. Deprecated at 0.21. Use Op.COPY_BLOCK instead.

OP_BLOCK_CHECKSUM

@Deprecated
static final byte OP_BLOCK_CHECKSUM
Deprecated. Deprecated at 0.21. Use Op.BLOCK_CHECKSUM instead.

OP_STATUS_SUCCESS

@Deprecated
static final int OP_STATUS_SUCCESS
Deprecated. Deprecated at 0.21. Use Status.SUCCESS instead.

OP_STATUS_ERROR

@Deprecated
static final int OP_STATUS_ERROR
Deprecated. Deprecated at 0.21. Use Status.ERROR instead.

OP_STATUS_ERROR_CHECKSUM

@Deprecated
static final int OP_STATUS_ERROR_CHECKSUM
Deprecated. Deprecated at 0.21. Use Status.ERROR_CHECKSUM instead.

OP_STATUS_ERROR_INVALID

@Deprecated
static final int OP_STATUS_ERROR_INVALID
Deprecated. Deprecated at 0.21. Use Status.ERROR_INVALID instead.

OP_STATUS_ERROR_EXISTS

@Deprecated
static final int OP_STATUS_ERROR_EXISTS
Deprecated. Deprecated at 0.21. Use Status.ERROR_EXISTS instead.

OP_STATUS_ERROR_ACCESS_TOKEN

@Deprecated
static final int OP_STATUS_ERROR_ACCESS_TOKEN
Deprecated. Deprecated at 0.21. Use Status.ERROR_ACCESS_TOKEN instead.

OP_STATUS_CHECKSUM_OK

@Deprecated
static final int OP_STATUS_CHECKSUM_OK
Deprecated. Deprecated at 0.21. Use Status.CHECKSUM_OK instead.


Copyright © 2009 The Apache Software Foundation