String port = httpAddress.split(":")[1];
String href = "http://" + address.getHostName() + ":" + port;
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), "Trackers", status.getTaskTrackers());
tableRow(sb, (highlight = !highlight), "Blacklisted", status.getBlacklistedTrackers());
} catch (Exception ex) {
sb.append("<tr><td colspan='2'><span class='error'>Job Tracker is Down</span></td></tr>\n");
}
sb.append("</table>\n");
}