use of org.apache.hadoop.hdds.protocol.proto.StorageContainerLocationProtocolProtos.GetContainerCountResponseProto in project ozone by apache.
the class StorageContainerLocationProtocolClientSideTranslatorPB method getContainerCount.
@Override
public long getContainerCount() throws IOException {
GetContainerCountRequestProto request = GetContainerCountRequestProto.newBuilder().build();
GetContainerCountResponseProto response = submitRequest(Type.GetContainerCount, builder -> builder.setGetContainerCountRequest(request)).getGetContainerCountResponse();
return response.getContainerCount();
}
Aggregations