synchronized boolean processHeartbeat(TaskTrackerStatus trackerStatus,
boolean initialContact) {
boolean loggingEnabled = LOG.isDebugEnabled();
String trackerName = trackerStatus.getTrackerName();
boolean seenBefore = updateTaskTrackerStatus(trackerName, trackerStatus);
TaskTracker taskTracker = getTaskTracker(trackerName);
// update the status of the task tracker. Also updates all aggregate
// statistics
if (loggingEnabled) {
LOG.debug("processing heartbeat for " + trackerName);
LOG.debug("updating TaskTracker status for " + trackerName);