public class ElapsedTimeCompletionEstimator extends AbstractCompletionEstimator
eventService, resultService| Constructor and Description |
|---|
ElapsedTimeCompletionEstimator(EventService eventService,
ResultService resultService,
String timeUnitStr,
long duration)
Constructor with required dependencies
|
| Modifier and Type | Method and Description |
|---|---|
protected double |
getCompletionImpl()
Implementation of a fetch to get the completion state.
|
getCheckPeriod, getCompletion, getResultsFail, getResultsFailImpl, getResultsSuccess, getResultsSuccessImpl, isCompleted, isStarted, setCheckPeriodpublic ElapsedTimeCompletionEstimator(EventService eventService, ResultService resultService, String timeUnitStr, long duration)
resultService - used find the first event timetimeUnitStr - the unit used for the duration e.g. *SECONDS*, *MINUTES*, etc.duration - the duration of the test in whichever units are suppliedprotected double getCompletionImpl()
complete.
getCompletionImpl in class AbstractCompletionEstimatorCopyright © 2005–2018 Alfresco Software. All rights reserved.