use of org.apache.hadoop.hdds.protocol.proto.StorageContainerLocationProtocolProtos.ForceExitSafeModeRequestProto in project ozone by apache.
the class StorageContainerLocationProtocolClientSideTranslatorPB method forceExitSafeMode.
/**
* Force SCM out of Safe mode.
*
* @return returns true if operation is successful.
*/
@Override
public boolean forceExitSafeMode() throws IOException {
ForceExitSafeModeRequestProto request = ForceExitSafeModeRequestProto.getDefaultInstance();
ForceExitSafeModeResponseProto resp = submitRequest(Type.ForceExitSafeMode, builder -> builder.setForceExitSafeModeRequest(request)).getForceExitSafeModeResponse();
return resp.getExitedSafeMode();
}
Aggregations