Print a view of not admitted jobs to the given output writer.
@param out Where to dump the oiutput
@param userFilterSet Only show jobs from these users if not null
@param poolFilterSet Only show jobs from these pools if not null
198075
private void showJobsNotAdmitted(
      PrintWriter out, Set<String> userFilterSet, Set<String> poolFilterSet) {
    out.print("<h2>Not Admitted Jobs</h2>\n");
    out.print("<b>Filter</b> " +
        "<input type=\"text\" onkeyup=\"filterTables(this.value)\" " +
        "id=\"NotAdmittedJobsTableFilter\">" +
        "<input type=\"checkbox\" id=\"SubmittedTimeFilterToggle\" " +
        "onChange=\"filterTables(inputRJF.value)\" checked>Submitted Time " +
        "<input type=\"checkbox\" id=\"JobIDFilterToggle\" " +
        "onChange=\"filterTables(inputRJF.value)\" checked>JobID " +
        "<input type=\"checkbox\" id=\"UserFilterToggle\" " +
        "onChange=\"filterTables(inputRJF.value)\" checked>User " +
        "<input type=\"checkbox\" id=\"PoolFilterToggle\" " +
        "onChange=\"filterTables(inputRJF.value)\" checked>Pool " +
        "<input type=\"checkbox\" id=\"PrioFilterToggle\" " +
        "onChange=\"filterTables(inputRJF.value)\" checked>Priority" +
        "<br><br>\n");
    out.print("<script type=\"text/javascript\">var inputRJF = " +
        "document.getElementById('NotAdmittedJobsTableFilter');</script>");
    out.print("<table border=\"2\" cellpadding=\"5\" cellspacing=\"2\" " +
        "id=\"NotAdmittedJobsTable\" class=\"tablesorter\">\n");
    out.printf("<thead><tr>" +
        "<th>Submitted Time</th>" +
        "<th>JobID</th>" +
        "<th>User</th>" +
        "<th>Pool</th>" +
        "<th>Priority</th>" +
        "<th>Reason</th>" +
        "<th>Job Position</th>" +
        "<th>ETA to Admission (secs)</th>");
    out.print("</tr></thead><tbody>\n");
    Collection<NotAdmittedJobInfo> notAdmittedJobInfos =
        scheduler.getNotAdmittedJobs();
    for (NotAdmittedJobInfo jobInfo : notAdmittedJobInfos) {
      if ((userFilterSet != null) &&
          !userFilterSet.contains(jobInfo.getUser())) {
          continue;
      }
      if ((poolFilterSet != null) &&
          !poolFilterSet.contains(jobInfo.getPool())) {
        continue;
      }

      out.printf("<tr id=\"%s\">\n", jobInfo.getJobName());
      out.printf("<td>%s</td>\n", DATE_FORMAT.format(jobInfo.getStartDate()));
      out.printf("<td><a href=\"jobdetails.jsp?jobid=%s\">%s</a></td>",
          jobInfo.getJobName(), jobInfo.getJobName());
      out.printf("<td>%s</td>\n", jobInfo.getUser());
      out.printf("<td>%s</td>\n", jobInfo.getPool());
      out.printf("<td>%s</td>\n", jobInfo.getPriority());
      out.printf("<td>%s</td>\n", jobInfo.getReason());
      out.printf("<td>%d</td>\n", jobInfo.getHardAdmissionPosition());
      out.printf("<td>%d</td>\n",
          jobInfo.getEstimatedHardAdmissionEntranceSecs());
      out.print("</tr>\n");
    }
    out.print("</tbody></table>\n");
  }
414428
public static void printFinalSolutionSet(List<? extends Solution<?>> population) {

    new SolutionListOutput(population)
        .setSeparator("\t")
        .setVarFileOutputContext(new DefaultFileOutputContext("VAR.tsv"))
        .setFunFileOutputContext(new DefaultFileOutputContext("FUN.tsv"))
        .print();

    JMetalLogger.logger.info("Random seed: " + JMetalRandom.getInstance().getSeed());
    JMetalLogger.logger.info("Objectives values have been written to file FUN.tsv");
    JMetalLogger.logger.info("Variables values have been written to file VAR.tsv");
  }
954800
public boolean printData(PrintWriter out, int iPrintOptions)
    {
        this.addHiddenParam(out, TrxMessageHeader.LOG_TRX_ID, this.getProperty(TrxMessageHeader.LOG_TRX_ID));
        return super.printData(out, iPrintOptions);   // Don't print
    }
475523
public static void dumpSystemInfo(PrintWriter out) {
		out.println("--------------");
		out.println(getJvmSpecInfo());
		out.println("--------------");
		out.println(getJvmInfo());
		out.println("--------------");
		out.println(getJavaSpecInfo());
		out.println("--------------");
		out.println(getJavaInfo());
		out.println("--------------");
		out.println(getJavaRuntimeInfo());
		out.println("--------------");
		out.println(getOsInfo());
		out.println("--------------");
		out.println(getUserInfo());
		out.println("--------------");
		out.println(getHostInfo());
		out.println("--------------");
		out.println(getRuntimeInfo());
		out.println("--------------");
		out.flush();
	}
1317527
public static void print(ResultSet rs, PrintStream out) throws SQLException {
    ResultSetMetaData meta = rs.getMetaData();
    int columns = meta.getColumnCount();
    for (int i = 0; i < columns; i++) {
      if (i > 0) {
        out.print(",");
      }
      out.print("\"");
      out.print(meta.getColumnName(i + 1));
      out.print("\"");
    }
    out.println();

    while (rs.next()) {
      for (int i = 0; i < columns; i++) {
        if (i > 0) {
          out.print(",");
        }
        String value = rs.getString(i + 1);
        if (value != null) {
          out.print("\"");
          out.print(value.replaceAll("\"", "\"\""));
          out.print("\"");
        } else {
          out.print("NULL");
        }
      }
      out.println();
    }
  }
632975
protected synchronized void filter(ValueSet filterValueSet) {
        boolean explicitBufferEmpty = this.explicitBuffer.isEmpty();
        boolean scanBufferEmpty = this.scanBuffer.isEmpty();
        if (filterValueSet != null && !filterValueSet.isEmpty() && (!explicitBufferEmpty || !scanBufferEmpty)) {
            Iterator it = filterValueSet.iterator();
            while (it.hasNext()) {
                Object o = it.next();
                if (!explicitBufferEmpty && this.explicitBuffer.containsKey(o)) {
                    it.remove();
                } else if (!scanBufferEmpty && this.scanBuffer.contains(o)) {
                    it.remove();
                }
            }
        }
    }
1161141
@Override
    public JavaShellToolBuilder out(PrintStream output) {
        this.cmdOut = output;
        this.console = output;
        this.userOut = output;
        return this;
    }
1248077
public static void print(UnknownFieldSet fields, Appendable output) throws IOException {
        JsonGenerator generator = new JsonGenerator(output);
        generator.print("{");
        printUnknownFields(fields, generator);
        generator.print("}");
    }
1324208
private void printHelpAndExit() {
    System.out.println("Common usages:");
    System.out.println("  gobblin-admin.sh jobs --list");
    System.out.println("  gobblin-admin.sh jobs --list --name JobName");
    System.out.println("  gobblin-admin.sh jobs --details --id job_id");
    System.out.println("  gobblin-admin.sh jobs --properties --<id|name> <job_id|JobName>");
    System.out.println();

    printHelpAndExit(0);
  }
1208145
static void showCluster(
      PrintWriter out, boolean advancedView, JobTracker jobTracker) {
    String cluster = "";
    try {
      cluster = JSPUtil.generateClusterResTable(jobTracker);
      if (cluster.equals("")) {
        return;
      }
    } catch (IOException e) {
      return;
    }
    out.print("<h2>Cluster Resource</h2>\n");
    out.print(cluster);
  }
584844
@Restricted(NoExternalUse.class)
    public List<User> getImpactedUserList() {
        return User.getAll().stream()
                .filter(user -> {
                    ApiTokenProperty apiTokenProperty = user.getProperty(ApiTokenProperty.class);
                    return (apiTokenProperty != null && apiTokenProperty.hasLegacyToken());
                })
                .collect(Collectors.toList());
    }
1251974
public static void print(Object self, PrintWriter out) {
        if (out == null) {
            out = new PrintWriter(System.out);
        }
        out.print(InvokerHelper.toString(self));
    }
553377
public void output(PrintWriter out)
    {
        Map<String, Entry> entries = config.getSortedEntries();
        
        if ( entries.isEmpty() )
        {
            return;
        }

        ColumnPrinter printer = build(entries);

        out.println("Configuration Details");
        printer.print(out);
    }
1255426
private void printDestinationPermissions(Map<String, ?> destinationPermissions) {
        Set<String> destinations = destinationPermissions.keySet();
        for (String destination : destinations) {
            SibTr.debug(tc, CLASS_NAME + " Destination: " + destination);
            Permission permission = (Permission) destinationPermissions.get(destination);
            SibTr.debug(tc, "  Users having permissions!!!");
            Map<String, Set<String>> userRoles = permission.getRoleToUserMap();
            Set<String> uRoles = userRoles.keySet();
            for (String role : uRoles) {
                SibTr.debug(tc, "    " + role + ": " + userRoles.get(role));
            }
            SibTr.debug(tc, "  Groups having permissions!!!");
            Map<String, Set<String>> groupRoles = permission
                            .getRoleToGroupMap();
            Set<String> gRoles = groupRoles.keySet();
            for (String role : gRoles) {
                SibTr.debug(tc, "    " + role + ": " + groupRoles.get(role));
            }
        }
    }
811470
public void setUserImportJobs(java.util.Collection<UserImportJobType> userImportJobs) {
        if (userImportJobs == null) {
            this.userImportJobs = null;
            return;
        }

        this.userImportJobs = new java.util.ArrayList<UserImportJobType>(userImportJobs);
    }
666973
public void write(DataOutput out) throws IOException {
    jobid.write(out);
    Text.writeString(out, jobFile);
    Text.writeString(out, url);
    Text.writeString(out, user);
    Text.writeString(out, name);
    Text.writeString(out, queueName);
  }
81141
public static JspParameterFilters getJspParameterFilters(
      String userFilter,
      String poolGroupFilter,
      String poolInfoFilter) {
    JspParameterFilters filters = new JspParameterFilters();
    if (userFilter != null && !userFilter.equals("null")) {
      filters.getUserFilterSet().addAll(Arrays.asList(userFilter.split(",")));
      filters.getHtmlOutput().append(("<b>users:</b> " + userFilter + "<br>"));
    }
    if (poolGroupFilter != null && !poolGroupFilter.equals("null")) {
      filters.getPoolGroupFilterSet().addAll(
          Arrays.asList(poolGroupFilter.split(",")));
      filters.getHtmlOutput().append("<b>poolGroups:</b> " + poolGroupFilter +
          "<br>");
    }
    if (poolInfoFilter != null && !poolInfoFilter.equals("null")) {
      filters.getHtmlOutput().append(
          "<b>poolInfos:</b> " + poolInfoFilter + "<br>");
      for (String poolInfoString : poolInfoFilter.split(",")) {
        String[] poolInfoStrings = poolInfoString.split("[.]");
        if (poolInfoStrings.length == 2) {
          filters.getPoolInfoFilterSet().add(new PoolInfo(poolInfoStrings[0],
              poolInfoStrings[1]));
        }
      }
    }
    return filters;
  }