/** * Get the latest task attempt status. * * @return latest task attempt status. */ public Status getStatus() { return attempts.get(currentAttemptIndex()).getStatus(); }
/** * Sets the submit time for the latest task attempt. * * @param submitTime task submit time in ms. */ public void setSubmitTime(long submitTime) { attempts.get(currentAttemptIndex()).setSubmitTime(submitTime); }
/** * Get the latest task attempt status time. * * @return latest task attempt status time. */ public long getStatusTime() { return attempts.get(currentAttemptIndex()).getStatusTime(); }
/** * Sets the status code for the latest task attempt. * * @param statusCode status code. */ public void setStatusCode(int statusCode) { attempts.get(currentAttemptIndex()).setStatusCode(statusCode); }
/** * Get the latest task attempt status. * * @return latest task attempt status. */ public int getStatusCode() { return attempts.get(currentAttemptIndex()).getStatusCode(); }
/** * Sets the status message for the latest task attempt. * * @param statusMessage status message. */ public void setStatusMessage(String statusMessage) { attempts.get(currentAttemptIndex()).setStatusMessage(statusMessage); }
/** * Sets the status for the latest task attempt. * * @param status task status. */ public void setStatus(Status status) { attempts.get(currentAttemptIndex()).setStatus(status); }
/** * Sets the status time for the latest task attempt. * * @param statusTime status time. */ public void setStatusTime(long statusTime) { attempts.get(currentAttemptIndex()).setStatusTime(statusTime); }
/** * Get the latest task attempt submit time. * * @return latest task attempt submit time. */ public long getSubmitTime() { return attempts.get(currentAttemptIndex()).getSubmitTime(); }
/** * Get the latest task attempt status message. * * @return latest task attempt status message. */ public String getStatusMessage() { return attempts.get(currentAttemptIndex()).getStatusMessage(); }