Java 类org.apache.hadoop.hdfs.protocol.proto.DataTransferProtos.OpBlockChecksumProto 实例源码

项目:hadoop    文件:Sender.java   
@Override
public void blockChecksum(final ExtendedBlock blk,
    final Token<BlockTokenIdentifier> blockToken) throws IOException {
  OpBlockChecksumProto proto = OpBlockChecksumProto.newBuilder()
    .setHeader(DataTransferProtoUtil.buildBaseHeader(blk, blockToken))
    .build();

  send(out, Op.BLOCK_CHECKSUM, proto);
}
项目:hadoop    文件:Receiver.java   
/** Receive OP_BLOCK_CHECKSUM */
private void opBlockChecksum(DataInputStream in) throws IOException {
  OpBlockChecksumProto proto = OpBlockChecksumProto.parseFrom(vintPrefixed(in));
  TraceScope traceScope = continueTraceSpan(proto.getHeader(),
      proto.getClass().getSimpleName());
  try {
  blockChecksum(PBHelper.convert(proto.getHeader().getBlock()),
      PBHelper.convert(proto.getHeader().getToken()));
  } finally {
    if (traceScope != null) traceScope.close();
  }
}
项目:aliyun-oss-hadoop-fs    文件:Sender.java   
@Override
public void blockChecksum(final ExtendedBlock blk,
    final Token<BlockTokenIdentifier> blockToken) throws IOException {
  OpBlockChecksumProto proto = OpBlockChecksumProto.newBuilder()
      .setHeader(DataTransferProtoUtil.buildBaseHeader(blk, blockToken))
      .build();

  send(out, Op.BLOCK_CHECKSUM, proto);
}
项目:aliyun-oss-hadoop-fs    文件:Receiver.java   
/** Receive OP_BLOCK_CHECKSUM */
private void opBlockChecksum(DataInputStream in) throws IOException {
  OpBlockChecksumProto proto = OpBlockChecksumProto.parseFrom(vintPrefixed(in));
  TraceScope traceScope = continueTraceSpan(proto.getHeader(),
      proto.getClass().getSimpleName());
  try {
  blockChecksum(PBHelperClient.convert(proto.getHeader().getBlock()),
      PBHelperClient.convert(proto.getHeader().getToken()));
  } finally {
    if (traceScope != null) traceScope.close();
  }
}
项目:big-c    文件:Sender.java   
@Override
public void blockChecksum(final ExtendedBlock blk,
    final Token<BlockTokenIdentifier> blockToken) throws IOException {
  OpBlockChecksumProto proto = OpBlockChecksumProto.newBuilder()
    .setHeader(DataTransferProtoUtil.buildBaseHeader(blk, blockToken))
    .build();

  send(out, Op.BLOCK_CHECKSUM, proto);
}
项目:big-c    文件:Receiver.java   
/** Receive OP_BLOCK_CHECKSUM */
private void opBlockChecksum(DataInputStream in) throws IOException {
  OpBlockChecksumProto proto = OpBlockChecksumProto.parseFrom(vintPrefixed(in));
  TraceScope traceScope = continueTraceSpan(proto.getHeader(),
      proto.getClass().getSimpleName());
  try {
  blockChecksum(PBHelper.convert(proto.getHeader().getBlock()),
      PBHelper.convert(proto.getHeader().getToken()));
  } finally {
    if (traceScope != null) traceScope.close();
  }
}
项目:hadoop-2.6.0-cdh5.4.3    文件:Sender.java   
@Override
public void blockChecksum(final ExtendedBlock blk,
    final Token<BlockTokenIdentifier> blockToken) throws IOException {
  OpBlockChecksumProto proto = OpBlockChecksumProto.newBuilder()
    .setHeader(DataTransferProtoUtil.buildBaseHeader(blk, blockToken))
    .build();

  send(out, Op.BLOCK_CHECKSUM, proto);
}
项目:hadoop-2.6.0-cdh5.4.3    文件:Receiver.java   
/** Receive OP_BLOCK_CHECKSUM */
private void opBlockChecksum(DataInputStream in) throws IOException {
  OpBlockChecksumProto proto = OpBlockChecksumProto.parseFrom(vintPrefixed(in));
  TraceScope traceScope = continueTraceSpan(proto.getHeader(),
      proto.getClass().getSimpleName());
  try {
  blockChecksum(PBHelper.convert(proto.getHeader().getBlock()),
      PBHelper.convert(proto.getHeader().getToken()));
  } finally {
    if (traceScope != null) traceScope.close();
  }
}
项目:hadoop-plus    文件:Sender.java   
@Override
public void blockChecksum(final ExtendedBlock blk,
    final Token<BlockTokenIdentifier> blockToken) throws IOException {
  OpBlockChecksumProto proto = OpBlockChecksumProto.newBuilder()
    .setHeader(DataTransferProtoUtil.buildBaseHeader(blk, blockToken))
    .build();

  send(out, Op.BLOCK_CHECKSUM, proto);
}
项目:hadoop-plus    文件:Receiver.java   
/** Receive OP_BLOCK_CHECKSUM */
private void opBlockChecksum(DataInputStream in) throws IOException {
  OpBlockChecksumProto proto = OpBlockChecksumProto.parseFrom(vintPrefixed(in));

  blockChecksum(PBHelper.convert(proto.getHeader().getBlock()),
      PBHelper.convert(proto.getHeader().getToken()));
}
项目:FlexMap    文件:Sender.java   
@Override
public void blockChecksum(final ExtendedBlock blk,
    final Token<BlockTokenIdentifier> blockToken) throws IOException {
  OpBlockChecksumProto proto = OpBlockChecksumProto.newBuilder()
    .setHeader(DataTransferProtoUtil.buildBaseHeader(blk, blockToken))
    .build();

  send(out, Op.BLOCK_CHECKSUM, proto);
}
项目:FlexMap    文件:Receiver.java   
/** Receive OP_BLOCK_CHECKSUM */
private void opBlockChecksum(DataInputStream in) throws IOException {
  OpBlockChecksumProto proto = OpBlockChecksumProto.parseFrom(vintPrefixed(in));
  TraceScope traceScope = continueTraceSpan(proto.getHeader(),
      proto.getClass().getSimpleName());
  try {
  blockChecksum(PBHelper.convert(proto.getHeader().getBlock()),
      PBHelper.convert(proto.getHeader().getToken()));
  } finally {
    if (traceScope != null) traceScope.close();
  }
}
项目:hops    文件:Sender.java   
@Override
public void blockChecksum(final ExtendedBlock blk,
    final Token<BlockTokenIdentifier> blockToken) throws IOException {
  OpBlockChecksumProto proto = OpBlockChecksumProto.newBuilder()
      .setHeader(DataTransferProtoUtil.buildBaseHeader(blk, blockToken))
      .build();

  send(out, Op.BLOCK_CHECKSUM, proto);
}
项目:hops    文件:Receiver.java   
/**
 * Receive OP_BLOCK_CHECKSUM
 */
private void opBlockChecksum(DataInputStream in) throws IOException {
  OpBlockChecksumProto proto =
      OpBlockChecksumProto.parseFrom(vintPrefixed(in));

  blockChecksum(PBHelper.convert(proto.getHeader().getBlock()),
      PBHelper.convert(proto.getHeader().getToken()));
}
项目:hadoop-TCP    文件:Sender.java   
@Override
public void blockChecksum(final ExtendedBlock blk,
    final Token<BlockTokenIdentifier> blockToken) throws IOException {
  OpBlockChecksumProto proto = OpBlockChecksumProto.newBuilder()
    .setHeader(DataTransferProtoUtil.buildBaseHeader(blk, blockToken))
    .build();

  send(out, Op.BLOCK_CHECKSUM, proto);
}
项目:hadoop-TCP    文件:Receiver.java   
/** Receive OP_BLOCK_CHECKSUM */
private void opBlockChecksum(DataInputStream in) throws IOException {
  OpBlockChecksumProto proto = OpBlockChecksumProto.parseFrom(vintPrefixed(in));

  blockChecksum(PBHelper.convert(proto.getHeader().getBlock()),
      PBHelper.convert(proto.getHeader().getToken()));
}
项目:hardfs    文件:Sender.java   
@Override
public void blockChecksum(final ExtendedBlock blk,
    final Token<BlockTokenIdentifier> blockToken) throws IOException {
  OpBlockChecksumProto proto = OpBlockChecksumProto.newBuilder()
    .setHeader(DataTransferProtoUtil.buildBaseHeader(blk, blockToken))
    .build();

  send(out, Op.BLOCK_CHECKSUM, proto);
}
项目:hardfs    文件:Receiver.java   
/** Receive OP_BLOCK_CHECKSUM */
private void opBlockChecksum(DataInputStream in) throws IOException {
  OpBlockChecksumProto proto = OpBlockChecksumProto.parseFrom(vintPrefixed(in));

  blockChecksum(PBHelper.convert(proto.getHeader().getBlock()),
      PBHelper.convert(proto.getHeader().getToken()));
}
项目:hadoop-on-lustre2    文件:Sender.java   
@Override
public void blockChecksum(final ExtendedBlock blk,
    final Token<BlockTokenIdentifier> blockToken) throws IOException {
  OpBlockChecksumProto proto = OpBlockChecksumProto.newBuilder()
    .setHeader(DataTransferProtoUtil.buildBaseHeader(blk, blockToken))
    .build();

  send(out, Op.BLOCK_CHECKSUM, proto);
}
项目:hadoop-on-lustre2    文件:Receiver.java   
/** Receive OP_BLOCK_CHECKSUM */
private void opBlockChecksum(DataInputStream in) throws IOException {
  OpBlockChecksumProto proto = OpBlockChecksumProto.parseFrom(vintPrefixed(in));

  blockChecksum(PBHelper.convert(proto.getHeader().getBlock()),
      PBHelper.convert(proto.getHeader().getToken()));
}