private double calculatePercentageComplete() { if (isFinished) { percentCompleteBasis = PercentCompleteBasis.ENDTIME; return 1; } if (stepExecutionHistory.getCount() == 0) { percentCompleteBasis = PercentCompleteBasis.NOHISTORY; return 0.5; } CumulativeHistory readHistory = stepExecutionHistory.getReadCount(); if (readHistory.getMean() == 0) { percentCompleteBasis = PercentCompleteBasis.DURATION; return getDurationBasedEstimate(duration); } percentCompleteBasis = PercentCompleteBasis.READCOUNT; return stepExecution.getReadCount() / readHistory.getMean(); }
private double calculatePercentageComplete() { if (isFinished) { percentCompleteBasis = PercentCompleteBasis.ENDTIME; return 1; } if (stepExecutionHistory.getCount() == 0) { percentCompleteBasis = PercentCompleteBasis.NOHISTORY; return 0.5; } CumulativeHistory readHistory = stepExecutionHistory.getReadCount(); if (readHistory.getMean() == 0) { percentCompleteBasis = PercentCompleteBasis.DURATION; return getDurationBasedEstimate(duration); } percentCompleteBasis = PercentCompleteBasis.READCOUNT; return stepExecution.getReadCount() / readHistory.getMean(); }
.addValue(progressInfoResource.getStepExecution().getLastUpdated()); modelBuilder.addRow().addValue("Read Count ") .addValue(progressInfoResource.getStepExecutionHistory().getReadCount().getCount()); modelBuilder.addRow().addValue("Write Count ") .addValue(progressInfoResource.getStepExecutionHistory().getWriteCount().getCount());
.addValue(progressInfoResource.getStepExecution().getLastUpdated()); modelBuilder.addRow().addValue("Read Count ") .addValue(progressInfoResource.getStepExecutionHistory().getReadCount().getCount()); modelBuilder.addRow().addValue("Write Count ") .addValue(progressInfoResource.getStepExecutionHistory().getWriteCount().getCount());