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

项目:hadoop    文件:PBHelper.java   
public static VolumeFailureSummary convertVolumeFailureSummary(
    VolumeFailureSummaryProto proto) {
  List<String> failedStorageLocations = proto.getFailedStorageLocationsList();
  return new VolumeFailureSummary(
      failedStorageLocations.toArray(new String[failedStorageLocations.size()]),
      proto.getLastVolumeFailureDate(), proto.getEstimatedCapacityLostTotal());
}
项目:hadoop    文件:PBHelper.java   
public static VolumeFailureSummaryProto convertVolumeFailureSummary(
    VolumeFailureSummary volumeFailureSummary) {
  VolumeFailureSummaryProto.Builder builder =
      VolumeFailureSummaryProto.newBuilder();
  for (String failedStorageLocation:
      volumeFailureSummary.getFailedStorageLocations()) {
    builder.addFailedStorageLocations(failedStorageLocation);
  }
  builder.setLastVolumeFailureDate(
      volumeFailureSummary.getLastVolumeFailureDate());
  builder.setEstimatedCapacityLostTotal(
      volumeFailureSummary.getEstimatedCapacityLostTotal());
  return builder.build();
}
项目:aliyun-oss-hadoop-fs    文件:PBHelper.java   
public static VolumeFailureSummary convertVolumeFailureSummary(
    VolumeFailureSummaryProto proto) {
  List<String> failedStorageLocations = proto.getFailedStorageLocationsList();
  return new VolumeFailureSummary(
      failedStorageLocations.toArray(new String[failedStorageLocations.size()]),
      proto.getLastVolumeFailureDate(), proto.getEstimatedCapacityLostTotal());
}
项目:aliyun-oss-hadoop-fs    文件:PBHelper.java   
public static VolumeFailureSummaryProto convertVolumeFailureSummary(
    VolumeFailureSummary volumeFailureSummary) {
  VolumeFailureSummaryProto.Builder builder =
      VolumeFailureSummaryProto.newBuilder();
  for (String failedStorageLocation:
      volumeFailureSummary.getFailedStorageLocations()) {
    builder.addFailedStorageLocations(failedStorageLocation);
  }
  builder.setLastVolumeFailureDate(
      volumeFailureSummary.getLastVolumeFailureDate());
  builder.setEstimatedCapacityLostTotal(
      volumeFailureSummary.getEstimatedCapacityLostTotal());
  return builder.build();
}
项目:big-c    文件:PBHelper.java   
public static VolumeFailureSummary convertVolumeFailureSummary(
    VolumeFailureSummaryProto proto) {
  List<String> failedStorageLocations = proto.getFailedStorageLocationsList();
  return new VolumeFailureSummary(
      failedStorageLocations.toArray(new String[failedStorageLocations.size()]),
      proto.getLastVolumeFailureDate(), proto.getEstimatedCapacityLostTotal());
}
项目:big-c    文件:PBHelper.java   
public static VolumeFailureSummaryProto convertVolumeFailureSummary(
    VolumeFailureSummary volumeFailureSummary) {
  VolumeFailureSummaryProto.Builder builder =
      VolumeFailureSummaryProto.newBuilder();
  for (String failedStorageLocation:
      volumeFailureSummary.getFailedStorageLocations()) {
    builder.addFailedStorageLocations(failedStorageLocation);
  }
  builder.setLastVolumeFailureDate(
      volumeFailureSummary.getLastVolumeFailureDate());
  builder.setEstimatedCapacityLostTotal(
      volumeFailureSummary.getEstimatedCapacityLostTotal());
  return builder.build();
}
项目:hadoop-2.6.0-cdh5.4.3    文件:PBHelper.java   
public static VolumeFailureSummary convertVolumeFailureSummary(
    VolumeFailureSummaryProto proto) {
  List<String> failedStorageLocations = proto.getFailedStorageLocationsList();
  return new VolumeFailureSummary(
      failedStorageLocations.toArray(new String[failedStorageLocations.size()]),
      proto.getLastVolumeFailureDate(), proto.getEstimatedCapacityLostTotal());
}
项目:hadoop-2.6.0-cdh5.4.3    文件:PBHelper.java   
public static VolumeFailureSummaryProto convertVolumeFailureSummary(
    VolumeFailureSummary volumeFailureSummary) {
  VolumeFailureSummaryProto.Builder builder =
      VolumeFailureSummaryProto.newBuilder();
  for (String failedStorageLocation:
      volumeFailureSummary.getFailedStorageLocations()) {
    builder.addFailedStorageLocations(failedStorageLocation);
  }
  builder.setLastVolumeFailureDate(
      volumeFailureSummary.getLastVolumeFailureDate());
  builder.setEstimatedCapacityLostTotal(
      volumeFailureSummary.getEstimatedCapacityLostTotal());
  return builder.build();
}