code: public void write(DataOutput out) throws IOException {
      Text.writeString(out, trackerName);
      Text.writeString(out, host);
      out.writeInt(httpPort);
      out.writeInt(failures);
      out.writeInt(maxMapTasks);
      out.writeInt(maxReduceTasks);
      resStatus.write(out);
      out.writeInt(taskReports.size());
  
      for (TaskStatus taskStatus : taskReports) {
        TaskStatus.writeTaskStatus(out, taskStatus);
      }
      getHealthStatus().write(out);
    }
docs: /////////////////////////////////////////