public class EventCountCompletionEstimator extends AbstractCompletionEstimator
eventService, resultService| Constructor and Description |
|---|
EventCountCompletionEstimator(EventService eventService,
ResultService resultService,
String eventName,
long eventCount)
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 EventCountCompletionEstimator(EventService eventService, ResultService resultService, String eventName, long eventCount)
eventService - used to do final checks of event countsresultService - used to count resultseventName - the name of the event to counteventCount - the total number of events expectedprotected double getCompletionImpl()
complete.
Counts the number of the target event relative to the total expected.getCompletionImpl in class AbstractCompletionEstimatorCopyright © 2005–2018 Alfresco Software. All rights reserved.