String href = "http://" + address.getHostName() + ":" + port;
String activeUrl = href + "/machines.jsp?type=active";
String blacklistUrl = href + "/machines.jsp?type=blacklisted";
sb.append("<tr><th colspan='2'><a href='" + href + "'>JobTracker</a></th></tr>\n");
boolean highlight = false;
tableRow(sb, (highlight = !highlight), "Running Jobs", jc.jobsToComplete().length);
ClusterStatus status = jc.getClusterStatus();
tableRow(sb, (highlight = !highlight), "Map Tasks", status.getMapTasks() + "/" + status.getMaxMapTasks());
tableRow(sb, (highlight = !highlight), "Reduce Tasks", status.getReduceTasks() + "/" + status.getMaxReduceTasks());
tableRow(sb, (highlight = !highlight), "<a href='" + activeUrl + "'>Trackers</a>", status.getTaskTrackers());
tableRow(sb, (highlight = !highlight), "<a href='" + blacklistUrl + "'>Blacklisted</a>", status.getBlacklistedTrackers());