Class SimpleCycleProgress
- java.lang.Object
-
- eu.xenit.alfresco.healthprocessor.indexing.SimpleCycleProgress
-
- All Implemented Interfaces:
eu.xenit.alfresco.healthprocessor.reporter.api.CycleProgress
public class SimpleCycleProgress extends java.lang.Object implements eu.xenit.alfresco.healthprocessor.reporter.api.CycleProgress
-
-
Constructor Summary
Constructors Constructor Description SimpleCycleProgress(long startId, long endId, java.util.function.LongSupplier currentId)
SimpleCycleProgress(long startId, java.time.Instant startTime, long endId, java.util.function.LongSupplier currentId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.Duration
getElapsed()
java.util.Optional<java.time.Duration>
getEstimatedCompletion()
float
getProgress()
boolean
isUnknown()
-
-
-
Method Detail
-
isUnknown
public boolean isUnknown()
- Specified by:
isUnknown
in interfaceeu.xenit.alfresco.healthprocessor.reporter.api.CycleProgress
-
getProgress
public float getProgress()
- Specified by:
getProgress
in interfaceeu.xenit.alfresco.healthprocessor.reporter.api.CycleProgress
-
getElapsed
@Nonnull public java.time.Duration getElapsed()
- Specified by:
getElapsed
in interfaceeu.xenit.alfresco.healthprocessor.reporter.api.CycleProgress
-
getEstimatedCompletion
@Nonnull public java.util.Optional<java.time.Duration> getEstimatedCompletion()
- Specified by:
getEstimatedCompletion
in interfaceeu.xenit.alfresco.healthprocessor.reporter.api.CycleProgress
-
-