use of org.apache.hadoop.hdds.protocol.proto.StorageContainerLocationProtocolProtos.FinalizeScmUpgradeResponseProto in project ozone by apache.
the class StorageContainerLocationProtocolClientSideTranslatorPB method finalizeScmUpgrade.
@Override
public StatusAndMessages finalizeScmUpgrade(String upgradeClientID) throws IOException {
FinalizeScmUpgradeRequestProto req = FinalizeScmUpgradeRequestProto.newBuilder().setUpgradeClientId(upgradeClientID).build();
FinalizeScmUpgradeResponseProto response = submitRequest(Type.FinalizeScmUpgrade, builder -> builder.setFinalizeScmUpgradeRequest(req)).getFinalizeScmUpgradeResponse();
UpgradeFinalizationStatus status = response.getStatus();
return new StatusAndMessages(UpgradeFinalizer.Status.valueOf(status.getStatus().name()), status.getMessagesList());
}
Aggregations