Package com.redwood.scheduler.api.model
Interface DurationEstimate
- 
- All Known Subinterfaces:
- TimeEstimate
 
 public interface DurationEstimateInterface for information about an estimated duration.
- 
- 
Field SummaryFields Modifier and Type Field Description static intSOURCE_ESTIMATEEstimate is based on job statistics.static intSOURCE_INCOMPLETEEstimate is based on incomplete information.static intSOURCE_KNOWNEstimate is based on completed job information.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetSource()Query the source of this estimate.longgetTimeMillis()Get the value for this estimate.
 
- 
- 
- 
Field Detail- 
SOURCE_KNOWNstatic 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_ESTIMATEstatic 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_INCOMPLETEstatic 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- 
getSourceint getSource() Query the source of this estimate.- Returns:
- the source of this estimate.
- See Also:
- SOURCE_KNOWN,- SOURCE_ESTIMATE,- SOURCE_INCOMPLETE
 
 - 
getTimeMillislong getTimeMillis() Get the value for this estimate.- Returns:
- the estimate, measured in milliseconds.
 
 
- 
 
-