use of org.apache.hadoop.hbase.shaded.protobuf.generated.RSGroupAdminProtos.RemoveRSGroupResponse in project hbase by apache.
the class MasterRpcServices method removeRSGroup.
@Override
public RemoveRSGroupResponse removeRSGroup(RpcController controller, RemoveRSGroupRequest request) throws ServiceException {
RemoveRSGroupResponse.Builder builder = RemoveRSGroupResponse.newBuilder();
LOG.info(server.getClientIdAuditPrefix() + " remove rsgroup " + request.getRSGroupName());
try {
if (server.getMasterCoprocessorHost() != null) {
server.getMasterCoprocessorHost().preRemoveRSGroup(request.getRSGroupName());
}
server.getRSGroupInfoManager().removeRSGroup(request.getRSGroupName());
if (server.getMasterCoprocessorHost() != null) {
server.getMasterCoprocessorHost().postRemoveRSGroup(request.getRSGroupName());
}
} catch (IOException e) {
throw new ServiceException(e);
}
return builder.build();
}
Aggregations