code: public void record(
      TaskInProgress tip, String host, long inputBytes) {
      synchronized (localityRecords) {
        localityRecords.add(new Record(tip, host, inputBytes));
        localityRecords.notify();
      }
    }
docs: Asynchronous update of locality.
  @param tip The task.
  @param host The task tracker host.
  @param inputBytes The number of bytes processed.