Class DataTransferProtoUtil

java.lang.Object
org.apache.hadoop.hdfs.protocol.datatransfer.DataTransferProtoUtil

@Private @Evolving public abstract class DataTransferProtoUtil extends Object
Static utilities for dealing with the protocol buffers used by the Data Transfer Protocol.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    checkBlockOpStatus(org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.BlockOpResponseProto response, String logInfo)
     
    static void
    checkBlockOpStatus(org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.BlockOpResponseProto response, String logInfo, boolean checkBlockPinningErr)
     
    static org.apache.hadoop.util.DataChecksum
    fromProto(org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.ChecksumProto proto)
     
    static org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.ChecksumProto
    toProto(org.apache.hadoop.util.DataChecksum checksum)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DataTransferProtoUtil

      public DataTransferProtoUtil()
  • Method Details

    • toProto

      public static org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.ChecksumProto toProto(org.apache.hadoop.util.DataChecksum checksum)
    • fromProto

      public static org.apache.hadoop.util.DataChecksum fromProto(org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.ChecksumProto proto)
    • checkBlockOpStatus

      public static void checkBlockOpStatus(org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.BlockOpResponseProto response, String logInfo) throws IOException
      Throws:
      IOException
    • checkBlockOpStatus

      public static void checkBlockOpStatus(org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.BlockOpResponseProto response, String logInfo, boolean checkBlockPinningErr) throws IOException
      Throws:
      IOException