"text-decoration: underline; " +
"cursor: pointer;}</style>\n");
out.print("</head><body>\n");
out.printf("<h1><a href=\"/jobtracker.jsp\">%s</a> " +
"Job Scheduler Administration</h1>\n", hostname);
AdmissionControlData admissionControlData =
scheduler.getJobInitializer().getAdmissionControlData();
out.printf("<b>Cluster-Wide Soft Task Limit :</b> %d<br>",
admissionControlData.getSoftTaskLimit());
out.printf("<b>Cluster-Wide Hard Task Limit :</b> %d<br>",
admissionControlData.getHardTaskLimit());
out.printf("<b>Cluster-Wide Total Tasks:</b> %d<br>",
admissionControlData.getTotalTasks());
if (admissionControlData.getHardTaskLimit() <
admissionControlData.getTotalTasks()) {
out.print("<b style=\"color:#FF0000\">" +
"Cluster is now in hard admission control. All new jobs will " +
"have to wait until tasks clear before admission.</b><br>");
} else if (admissionControlData.getSoftTaskLimit() <
admissionControlData.getTotalTasks()) {
out.print("<b style=\"color:#FF6600\">" +
"Cluster is now in soft admission control. Only jobs submitted to " +
"SLA pools that also meet the SLA pool limits will be " +
"admitted.</b><br>");
}