use of org.apache.hadoop.hbase.shaded.protobuf.generated.RSGroupAdminProtos.ListTablesInRSGroupResponse in project hbase by apache.
the class MasterRpcServices method listTablesInRSGroup.
@Override
public ListTablesInRSGroupResponse listTablesInRSGroup(RpcController controller, ListTablesInRSGroupRequest request) throws ServiceException {
ListTablesInRSGroupResponse.Builder builder = ListTablesInRSGroupResponse.newBuilder();
String groupName = request.getGroupName();
LOG.info(server.getClientIdAuditPrefix() + " list tables in rsgroup " + groupName);
try {
if (server.getMasterCoprocessorHost() != null) {
server.getMasterCoprocessorHost().preListTablesInRSGroup(groupName);
}
RSGroupUtil.listTablesInRSGroup(server, groupName).stream().map(ProtobufUtil::toProtoTableName).forEach(builder::addTableName);
if (server.getMasterCoprocessorHost() != null) {
server.getMasterCoprocessorHost().postListTablesInRSGroup(groupName);
}
} catch (IOException e) {
throw new ServiceException(e);
}
return builder.build();
}
Aggregations