use of org.apache.tez.dag.api.client.ProgressBuilder in project tez by apache.
the class VertexImpl method getVertexProgress.
@Override
public ProgressBuilder getVertexProgress() {
this.readLock.lock();
try {
ProgressBuilder progress = new ProgressBuilder();
progress.setTotalTaskCount(numTasks);
progress.setSucceededTaskCount(succeededTaskCount);
if (inTerminalState()) {
progress.setRunningTaskCount(0);
} else {
progress.setRunningTaskCount(getRunningTasks());
}
progress.setFailedTaskCount(failedTaskCount);
progress.setKilledTaskCount(killedTaskCount);
progress.setFailedTaskAttemptCount(failedTaskAttemptCount.get());
progress.setKilledTaskAttemptCount(killedTaskAttemptCount.get());
progress.setRejectedTaskAttemptCount(rejectedTaskAttemptCount.get());
return progress;
} finally {
this.readLock.unlock();
}
}
Aggregations