Package com.redwood.scheduler.api.model
Interface DurationEstimate
-
- All Known Subinterfaces:
TimeEstimate
public interface DurationEstimate
Interface for information about an estimated duration.
-
-
Field Summary
Fields Modifier and Type Field Description static int
SOURCE_ESTIMATE
Estimate is based on job statistics.static int
SOURCE_INCOMPLETE
Estimate is based on incomplete information.static int
SOURCE_KNOWN
Estimate is based on completed job information.static com.redwood.scheduler.infrastructure.logging.Versions
VERSIONS_DE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getSource()
Query the source of this estimate.long
getTimeMillis()
Get the value for this estimate.
-
-
-
Field Detail
-
VERSIONS_DE
static final com.redwood.scheduler.infrastructure.logging.Versions VERSIONS_DE
-
SOURCE_KNOWN
static final int SOURCE_KNOWN
Estimate is based on completed job information. This means that estimate is not really an estimate but actual known information.- See Also:
- Constant Field Values
-
SOURCE_ESTIMATE
static final int SOURCE_ESTIMATE
Estimate is based on job statistics. This means that the estimate is based on statistics and other predicted information.- See Also:
- Constant Field Values
-
SOURCE_INCOMPLETE
static final int SOURCE_INCOMPLETE
Estimate is based on incomplete information. This means that the estimate is based on incomplete information. As such it is likely to be quite wrong.- See Also:
- Constant Field Values
-
-
Method Detail
-
getSource
int getSource()
Query the source of this estimate.- Returns:
- the source of this estimate.
- See Also:
SOURCE_KNOWN
,SOURCE_ESTIMATE
,SOURCE_INCOMPLETE
-
getTimeMillis
long getTimeMillis()
Get the value for this estimate.- Returns:
- the estimate, measured in milliseconds.
-
-