hadoop-hdds/server-scm/src/test/java/org/apache/hadoop/ozone/container/common/TestEndPoint.java
StorageContainerDatanodeProtocolProtos.ContainerReportsRequestProto
      createDummyContainerReports(int count) {
    StorageContainerDatanodeProtocolProtos.ContainerReportsRequestProto.Builder
        reportsBuilder = StorageContainerDatanodeProtocolProtos
        .ContainerReportsRequestProto.newBuilder();
    for (int x = 0; x < count; x++) {
      reportsBuilder.addReports(getRandomContainerReport()
          .getProtoBufMessage());
    }
    reportsBuilder.setDatanodeDetails(getDatanodeDetails()
        .getProtoBufMessage());
    reportsBuilder.setType(StorageContainerDatanodeProtocolProtos
        .ContainerReportsRequestProto.reportType.fullReport);
    return reportsBuilder.build();
  }
/**
   * Creates dummy container reports.
   * @param count - The number of closed containers to create.
   * @return ContainerReportsProto
   */
Creates dummy container reports.
@param count - The number of closed containers to create.
Creates dummy container reports . @param count - The number of closed containers to create .
StorageContainerDatanodeProtocolProtos.ContainerReportsRequestProto
      createDummyContainerReports(int count) {
    StorageContainerDatanodeProtocolProtos.ContainerReportsRequestProto.Builder
        reportsBuilder = StorageContainerDatanodeProtocolProtos
        .ContainerReportsRequestProto.newBuilder();
    for (int x = 0; x < count; x++) {
      reportsBuilder.addReports(getRandomContainerReport()
          .getProtoBufMessage());
    }
    reportsBuilder.setDatanodeDetails(getDatanodeDetails()
        .getProtoBufMessage());
    reportsBuilder.setType(StorageContainerDatanodeProtocolProtos
        .ContainerReportsRequestProto.reportType.fullReport);
    return reportsBuilder.build();
  }
StorageContainerDatanodeProtocolProtos . ContainerReportsRequestProto createDummyContainerReports ( int count ) { StorageContainerDatanodeProtocolProtos . ContainerReportsRequestProto . Builder reportsBuilder = StorageContainerDatanodeProtocolProtos . ContainerReportsRequestProto . newBuilder ( ) ; for ( int x = 0 ; x < count ; x ++ ) { reportsBuilder . addReports ( getRandomContainerReport ( ) . getProtoBufMessage ( ) ) ; } reportsBuilder . setDatanodeDetails ( getDatanodeDetails ( ) . getProtoBufMessage ( ) ) ; reportsBuilder . setType ( StorageContainerDatanodeProtocolProtos . ContainerReportsRequestProto . reportType . fullReport ) ; return reportsBuilder . build ( ) ; }
Creates dummy container reports.
Creates dummy container reports .