@Override
  public ListTableNamesByStateResponse listTableNamesByState(RpcController controller,
    ListTableNamesByStateRequest request) throws ServiceException {
    try {
      server.checkServiceStarted();
      List<TableName> tableNames = server.listTableNames(null, null, false);
      ListTableNamesByStateResponse.Builder builder = ListTableNamesByStateResponse.newBuilder();
      if (tableNames != null && tableNames.size() > 0) {
        // Add the disabled table names to the response
        TableState.State state =
          request.getIsEnabled() ? TableState.State.ENABLED : TableState.State.DISABLED;
        for (TableName table : tableNames) {
          if (server.getTableStateManager().isTableState(table, state)) {
            builder.addTableNames(ProtobufUtil.toProtoTableName(table));
          }
        }
      }
      return builder.build();
    } catch (IOException e) {
      throw new ServiceException(e);
    }
  }
Get list of userspace table names
@param controller Unused (set to null).
@param req        GetTableNamesRequest
hbase-server/src/main/java/org/apache/hadoop/hbase/master/MasterRpcServices.java