/** * Is the Task associated with taskid is the speculative attempt of the tip? * @param taskId * @return Returns true if the Task is the speculative attempt of the tip */ public boolean isSpeculativeAttempt(TaskAttemptID taskId) { return speculativeTaskId == null ? false : speculativeTaskId.equals(taskId); }
/** * Is the Task associated with taskid is the first attempt of the tip? * @param taskId * @return Returns true if the Task is the first attempt of the tip */ public boolean isFirstAttempt(TaskAttemptID taskId) { return firstTaskId == null ? false : firstTaskId.equals(taskId); }
/** * Is the Task associated with taskid is the first attempt of the tip? * @param taskId * @return Returns true if the Task is the first attempt of the tip */ public boolean isFirstAttempt(TaskAttemptID taskId) { return firstTaskId == null ? false : firstTaskId.equals(taskId); }
public boolean equals(Object o) { TaskAttemptIDWithTip that = (TaskAttemptIDWithTip)o; return this.attemptId.equals(that.attemptId); }
/** * Is the given taskid the one that took this tip to completion? * * @param taskid taskid of attempt to check for completion * @return <code>true</code> if taskid is complete, else <code>false</code> */ public boolean isComplete(TaskAttemptID taskid) { return ((completes > 0) && taskid.equals(getSuccessfulTaskid())); }
/** * Is the given taskid the one that took this tip to completion? * * @param taskid taskid of attempt to check for completion * @return <code>true</code> if taskid is complete, else <code>false</code> */ public boolean isComplete(TaskAttemptID taskid) { return ((completes > 0) && taskid.equals(getSuccessfulTaskid())); }
/** * Returns whether the task attempt should be committed or not */ public boolean shouldCommit(TaskAttemptID taskid) { return !isComplete() && taskToCommit.equals(taskid); }
/** * Is the given taskid the one that took this tip to completion? * * @param taskid taskid of attempt to check for completion * @return <code>true</code> if taskid is complete, else <code>false</code> */ public boolean isComplete(TaskAttemptID taskid) { return ((completes > 0) && taskid.equals(getSuccessfulTaskid())); }
/** * Returns whether the task attempt should be committed or not */ public boolean shouldCommit(TaskAttemptID taskid) { return !isComplete() && isCommitPending(taskid) && taskToCommit.equals(taskid); }
/** * Returns whether the task attempt should be committed or not */ public boolean shouldCommit(TaskAttemptID taskid) { return !isComplete() && isCommitPending(taskid) && taskToCommit.equals(taskid); }
@Override public boolean equals(Object obj) { return (obj instanceof TaskInProgress) && task.getTaskID().equals (((TaskInProgress) obj).getTask().getTaskID()); }
@Override public boolean equals(Object obj) { return (obj instanceof TaskInProgress) && task.getTaskID().equals (((TaskInProgress) obj).getTask().getTaskID()); }
@Override public boolean equals(Object obj) { return (obj instanceof TaskInProgress) && task.getTaskID().equals (((TaskInProgress) obj).getTask().getTaskID()); }
@Override public boolean equals(Object o) { if(o == null) return false; if(o.getClass().equals(TaskCompletionEvent.class)) { TaskCompletionEvent event = (TaskCompletionEvent) o; return this.isMap == event.isMapTask() && this.eventId == event.getEventId() && this.idWithinJob == event.idWithinJob() && this.status.equals(event.getTaskStatus()) && this.taskId.equals(event.getTaskAttemptId()) && this.taskRunTime == event.getTaskRunTime() && this.taskTrackerHttp.equals(event.getTaskTrackerHttp()); } return false; }
@Override public boolean equals(Object o) { if(o == null) return false; if(o.getClass().equals(TaskCompletionEvent.class)) { TaskCompletionEvent event = (TaskCompletionEvent) o; return this.isMap == event.isMapTask() && this.eventId == event.getEventId() && this.idWithinJob == event.idWithinJob() && this.status.equals(event.getTaskStatus()) && this.taskId.equals(event.getTaskAttemptId()) && this.taskRunTime == event.getTaskRunTime() && this.taskTrackerHttp.equals(event.getTaskTrackerHttp()); } return false; }
TaskCompletionEvent t = this.taskCompletionEvents.get(eventNumber); if (t.getTaskAttemptId().equals(taskid)) t.setTaskStatus(TaskCompletionEvent.Status.OBSOLETE);
TaskCompletionEvent t = this.taskCompletionEvents.get(eventNumber); if (t.getTaskAttemptId().equals(taskid)) t.setTaskStatus(TaskCompletionEvent.Status.OBSOLETE);
TaskCompletionEvent t = this.taskCompletionEvents.get(eventNumber); if (t.getTaskAttemptId().equals(taskid)) t.setTaskStatus(TaskCompletionEvent.Status.OBSOLETE);