use of org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.AbortProcedureResponse in project hbase by apache.
the class MasterRpcServices method abortProcedure.
@Override
public AbortProcedureResponse abortProcedure(RpcController rpcController, AbortProcedureRequest request) throws ServiceException {
try {
AbortProcedureResponse.Builder response = AbortProcedureResponse.newBuilder();
boolean abortResult = server.abortProcedure(request.getProcId(), request.getMayInterruptIfRunning());
response.setIsProcedureAborted(abortResult);
return response.build();
} catch (IOException e) {
throw new ServiceException(e);
}
}
Aggregations