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

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

  send(out, Op.COPY_BLOCK, proto);
}
项目:hadoop    文件:Receiver.java   
/** Receive OP_COPY_BLOCK */
private void opCopyBlock(DataInputStream in) throws IOException {
  OpCopyBlockProto proto = OpCopyBlockProto.parseFrom(vintPrefixed(in));
  TraceScope traceScope = continueTraceSpan(proto.getHeader(),
      proto.getClass().getSimpleName());
  try {
    copyBlock(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 copyBlock(final ExtendedBlock blk,
    final Token<BlockTokenIdentifier> blockToken) throws IOException {
  OpCopyBlockProto proto = OpCopyBlockProto.newBuilder()
      .setHeader(DataTransferProtoUtil.buildBaseHeader(blk, blockToken))
      .build();

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

  send(out, Op.COPY_BLOCK, proto);
}
项目:big-c    文件:Receiver.java   
/** Receive OP_COPY_BLOCK */
private void opCopyBlock(DataInputStream in) throws IOException {
  OpCopyBlockProto proto = OpCopyBlockProto.parseFrom(vintPrefixed(in));
  TraceScope traceScope = continueTraceSpan(proto.getHeader(),
      proto.getClass().getSimpleName());
  try {
    copyBlock(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 copyBlock(final ExtendedBlock blk,
    final Token<BlockTokenIdentifier> blockToken) throws IOException {
  OpCopyBlockProto proto = OpCopyBlockProto.newBuilder()
    .setHeader(DataTransferProtoUtil.buildBaseHeader(blk, blockToken))
    .build();

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

  send(out, Op.COPY_BLOCK, proto);
}
项目:FlexMap    文件:Sender.java   
@Override
public void copyBlock(final ExtendedBlock blk,
    final Token<BlockTokenIdentifier> blockToken) throws IOException {
  OpCopyBlockProto proto = OpCopyBlockProto.newBuilder()
    .setHeader(DataTransferProtoUtil.buildBaseHeader(blk, blockToken))
    .build();

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

  send(out, Op.COPY_BLOCK, proto);
}
项目:hadoop-TCP    文件:Sender.java   
@Override
public void copyBlock(final ExtendedBlock blk,
    final Token<BlockTokenIdentifier> blockToken) throws IOException {
  OpCopyBlockProto proto = OpCopyBlockProto.newBuilder()
    .setHeader(DataTransferProtoUtil.buildBaseHeader(blk, blockToken))
    .build();

  send(out, Op.COPY_BLOCK, proto);
}
项目:hardfs    文件:Sender.java   
@Override
public void copyBlock(final ExtendedBlock blk,
    final Token<BlockTokenIdentifier> blockToken) throws IOException {
  OpCopyBlockProto proto = OpCopyBlockProto.newBuilder()
    .setHeader(DataTransferProtoUtil.buildBaseHeader(blk, blockToken))
    .build();

  send(out, Op.COPY_BLOCK, proto);
}
项目:hadoop-on-lustre2    文件:Sender.java   
@Override
public void copyBlock(final ExtendedBlock blk,
    final Token<BlockTokenIdentifier> blockToken) throws IOException {
  OpCopyBlockProto proto = OpCopyBlockProto.newBuilder()
    .setHeader(DataTransferProtoUtil.buildBaseHeader(blk, blockToken))
    .build();

  send(out, Op.COPY_BLOCK, proto);
}
项目:hadoop-plus    文件:Receiver.java   
/** Receive OP_COPY_BLOCK */
private void opCopyBlock(DataInputStream in) throws IOException {
  OpCopyBlockProto proto = OpCopyBlockProto.parseFrom(vintPrefixed(in));
  copyBlock(PBHelper.convert(proto.getHeader().getBlock()),
      PBHelper.convert(proto.getHeader().getToken()));
}
项目:hops    文件:Receiver.java   
/**
 * Receive OP_COPY_BLOCK
 */
private void opCopyBlock(DataInputStream in) throws IOException {
  OpCopyBlockProto proto = OpCopyBlockProto.parseFrom(vintPrefixed(in));
  copyBlock(PBHelper.convert(proto.getHeader().getBlock()),
      PBHelper.convert(proto.getHeader().getToken()));
}
项目:hadoop-TCP    文件:Receiver.java   
/** Receive OP_COPY_BLOCK */
private void opCopyBlock(DataInputStream in) throws IOException {
  OpCopyBlockProto proto = OpCopyBlockProto.parseFrom(vintPrefixed(in));
  copyBlock(PBHelper.convert(proto.getHeader().getBlock()),
      PBHelper.convert(proto.getHeader().getToken()));
}
项目:hardfs    文件:Receiver.java   
/** Receive OP_COPY_BLOCK */
private void opCopyBlock(DataInputStream in) throws IOException {
  OpCopyBlockProto proto = OpCopyBlockProto.parseFrom(vintPrefixed(in));
  copyBlock(PBHelper.convert(proto.getHeader().getBlock()),
      PBHelper.convert(proto.getHeader().getToken()));
}
项目:hadoop-on-lustre2    文件:Receiver.java   
/** Receive OP_COPY_BLOCK */
private void opCopyBlock(DataInputStream in) throws IOException {
  OpCopyBlockProto proto = OpCopyBlockProto.parseFrom(vintPrefixed(in));
  copyBlock(PBHelper.convert(proto.getHeader().getBlock()),
      PBHelper.convert(proto.getHeader().getToken()));
}