@Override public long getStatusTimestamp(JobStatus status) { return this.stateTimestamps[status.ordinal()]; }
@Override public long getStatusTimestamp(JobStatus status) { return this.stateTimestamps[status.ordinal()]; }
@Override public long getStatusTimestamp(JobStatus status) { return this.stateTimestamps[status.ordinal()]; }
@Override public long getStatusTimestamp(JobStatus status) { return this.stateTimestamps[status.ordinal()]; }
@Override public long getStatusTimestamp(JobStatus status) { return this.stateTimestamps[status.ordinal()]; }
@Override public long getStatusTimestamp(JobStatus status) { return this.stateTimestamps[status.ordinal()]; }
@Override public long getStatusTimestamp(JobStatus status) { return this.stateTimestamps[status.ordinal()]; }
@Override public long getStatusTimestamp(JobStatus status) { return this.stateTimestamps[status.ordinal()]; }
private boolean transitionState(JobStatus current, JobStatus newState, Throwable error) { // consistency check if (current.isTerminalState()) { String message = "Job is trying to leave terminal state " + current; LOG.error(message); throw new IllegalStateException(message); } // now do the actual state transition if (STATE_UPDATER.compareAndSet(this, current, newState)) { LOG.info("Job {} ({}) switched from state {} to {}.", getJobName(), getJobID(), current, newState, error); stateTimestamps[newState.ordinal()] = System.currentTimeMillis(); notifyJobStatusChange(newState, error); return true; } else { return false; } }
private boolean transitionState(JobStatus current, JobStatus newState, Throwable error) { // consistency check if (current.isTerminalState()) { String message = "Job is trying to leave terminal state " + current; LOG.error(message); throw new IllegalStateException(message); } // now do the actual state transition if (STATE_UPDATER.compareAndSet(this, current, newState)) { LOG.info("Job {} ({}) switched from state {} to {}.", getJobName(), getJobID(), current, newState, error); stateTimestamps[newState.ordinal()] = System.currentTimeMillis(); notifyJobStatusChange(newState, error); return true; } else { return false; } }
private boolean transitionState(JobStatus current, JobStatus newState, Throwable error) { // consistency check if (current.isTerminalState()) { String message = "Job is trying to leave terminal state " + current; LOG.error(message); throw new IllegalStateException(message); } // now do the actual state transition if (STATE_UPDATER.compareAndSet(this, current, newState)) { LOG.info("Job {} ({}) switched from state {} to {}.", getJobName(), getJobID(), current, newState, error); stateTimestamps[newState.ordinal()] = System.currentTimeMillis(); notifyJobStatusChange(newState, error); return true; } else { return false; } }
private boolean transitionState(JobStatus current, JobStatus newState, Throwable error) { // consistency check if (current.isTerminalState()) { String message = "Job is trying to leave terminal state " + current; LOG.error(message); throw new IllegalStateException(message); } // now do the actual state transition if (STATE_UPDATER.compareAndSet(this, current, newState)) { LOG.info("Job {} ({}) switched from state {} to {}.", getJobName(), getJobID(), current, newState, error); stateTimestamps[newState.ordinal()] = System.currentTimeMillis(); notifyJobStatusChange(newState, error); return true; } else { return false; } }
if (i != JobStatus.RESTARTING.ordinal()) {
if (i != JobStatus.RESTARTING.ordinal()) {
if (i != JobStatus.RESTARTING.ordinal()) {
if (i != JobStatus.RESTARTING.ordinal()) {
final int ordinal = jobStatus.ordinal(); timestamps[ordinal] = executionGraph.getStatusTimestamp(jobStatus);
this.stateTimestamps[JobStatus.CREATED.ordinal()] = System.currentTimeMillis();
final int ordinal = jobStatus.ordinal(); timestamps[ordinal] = executionGraph.getStatusTimestamp(jobStatus);
final int ordinal = jobStatus.ordinal(); timestamps[ordinal] = executionGraph.getStatusTimestamp(jobStatus);