Java 类org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BlockReportContextProto 实例源码

项目:hadoop    文件:PBHelper.java   
public static BlockReportContextProto convert(BlockReportContext context) {
  return BlockReportContextProto.newBuilder().
      setTotalRpcs(context.getTotalRpcs()).
      setCurRpc(context.getCurRpc()).
      setId(context.getReportId()).
      build();
}
项目:aliyun-oss-hadoop-fs    文件:PBHelper.java   
public static BlockReportContextProto convert(BlockReportContext context) {
  return BlockReportContextProto.newBuilder().
      setTotalRpcs(context.getTotalRpcs()).
      setCurRpc(context.getCurRpc()).
      setId(context.getReportId()).
      setLeaseId(context.getLeaseId()).
      build();
}
项目:big-c    文件:PBHelper.java   
public static BlockReportContextProto convert(BlockReportContext context) {
  return BlockReportContextProto.newBuilder().
      setTotalRpcs(context.getTotalRpcs()).
      setCurRpc(context.getCurRpc()).
      setId(context.getReportId()).
      build();
}
项目:hadoop-2.6.0-cdh5.4.3    文件:PBHelper.java   
public static BlockReportContextProto convert(BlockReportContext context) {
  return BlockReportContextProto.newBuilder().
      setTotalRpcs(context.getTotalRpcs()).
      setCurRpc(context.getCurRpc()).
      setId(context.getReportId()).
      build();
}
项目:hadoop    文件:PBHelper.java   
public static BlockReportContext convert(BlockReportContextProto proto) {
  return new BlockReportContext(proto.getTotalRpcs(),
      proto.getCurRpc(), proto.getId());
}
项目:aliyun-oss-hadoop-fs    文件:PBHelper.java   
public static BlockReportContext convert(BlockReportContextProto proto) {
  return new BlockReportContext(proto.getTotalRpcs(),
      proto.getCurRpc(), proto.getId(), proto.getLeaseId());
}
项目:big-c    文件:PBHelper.java   
public static BlockReportContext convert(BlockReportContextProto proto) {
  return new BlockReportContext(proto.getTotalRpcs(),
      proto.getCurRpc(), proto.getId());
}
项目:hadoop-2.6.0-cdh5.4.3    文件:PBHelper.java   
public static BlockReportContext convert(BlockReportContextProto proto) {
  return new BlockReportContext(proto.getTotalRpcs(),
      proto.getCurRpc(), proto.getId());
}