@Override public long estimatedNewAttemptRuntime(TaskId id) { DataStatistics statistics = dataStatisticsForTask(id); if (statistics == null) { return -1L; } return (long)statistics.mean(); }
@Override public void updateAttempt(TaskAttemptStatus status, long timestamp) { super.updateAttempt(status, timestamp); TaskAttemptId attemptID = status.id; float progress = status.progress; incorporateReading(attemptID, progress, timestamp); } }
public boolean notHeartbeatedInAWhile(long now) { if (now - lastHeartBeatTime <= MAX_WAITTING_TIME_FOR_HEARTBEAT) { return false; } else { resetHeartBeatTime(now); return true; } }
public Void call(Configuration conf) { speculator.handle(event); return null; } });
@Override public long runtimeEstimateVariance(TaskAttemptId attemptID) { return storedPerAttemptValue(attemptRuntimeEstimateVariances, attemptID); } }
public DefaultSpeculator(Configuration conf, AppContext context, Clock clock) { this(conf, context, getEstimator(conf, context), clock); }
@Override public long estimatedNewAttemptRuntime(TaskId id) { DataStatistics statistics = dataStatisticsForTask(id); if (statistics == null) { return -1L; } return (long)statistics.mean(); }
@Override public void updateAttempt(TaskAttemptStatus status, long timestamp) { super.updateAttempt(status, timestamp); TaskAttemptId attemptID = status.id; float progress = status.progress; incorporateReading(attemptID, progress, timestamp); } }
public TaskAttemptHistoryStatistics(long estimatedRunTime, float progress, long nonProgressStartTime) { this.estimatedRunTime = estimatedRunTime; this.progress = progress; resetHeartBeatTime(nonProgressStartTime); }
public Void call(Configuration conf) { speculator.handle(event); return null; } });
@Override public long estimatedNewAttemptRuntime(TaskId id) { DataStatistics statistics = dataStatisticsForTask(id); if (statistics == null) { return -1L; } return (long)statistics.mean(); }
@Override public void updateAttempt(TaskAttemptStatus status, long timestamp) { super.updateAttempt(status, timestamp); TaskAttemptId attemptID = status.id; float progress = status.progress; incorporateReading(attemptID, progress, timestamp); } }
public boolean notHeartbeatedInAWhile(long now) { if (now - lastHeartBeatTime <= MAX_WAITTING_TIME_FOR_HEARTBEAT) { return false; } else { resetHeartBeatTime(now); return true; } }
public Void call(Configuration conf) { speculator.handle(event); return null; } });
public TaskAttemptHistoryStatistics(long estimatedRunTime, float progress, long nonProgressStartTime) { this.estimatedRunTime = estimatedRunTime; this.progress = progress; resetHeartBeatTime(nonProgressStartTime); }
public boolean notHeartbeatedInAWhile(long now) { if (now - lastHeartBeatTime <= MAX_WAITTING_TIME_FOR_HEARTBEAT) { return false; } else { resetHeartBeatTime(now); return true; } }