code: private String getTaskType(TaskInProgress tip) {
      if (tip.isJobCleanupTask()) {
        return Values.CLEANUP.name();
      } else if (tip.isJobSetupTask()) {
        return Values.SETUP.name();
      } else if (tip.isMapTask()) {
        return Values.MAP.name();
      } else {
        return Values.REDUCE.name();
      }
    }
docs: Get the task type for logging it to {@link JobHistory}.