Interface DependencyGraphEstimate
-
- All Known Subinterfaces:
BuildDependencyGraph
,TopBuildDependencyGraph
- All Known Implementing Classes:
BuildDependencyGraphImpl
,TopBuildDependencyGraphImpl
public interface DependencyGraphEstimate
Created by Nikita.Skvortsov Date: 3/29/13, 3:14 PM
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getCompletedPercent(boolean includeTopBuild)
Returns string representing progress in percents.long
getDurationOvertime(boolean includeTopBuild)
Returns current overtime for builds graph, or -1 if there is no overtime or estimate is not available.long
getEstimationForTimeLeft(boolean includeTopBuild)
Returns server estimate for all builds in graph to finishDate
getStartedDate()
Get date of first build in chain started.long
getTimePassed()
Get number of millis passed since start of the chain
-
-
-
Method Detail
-
getEstimationForTimeLeft
long getEstimationForTimeLeft(boolean includeTopBuild)
Returns server estimate for all builds in graph to finish- Parameters:
includeTopBuild
- - if false, do not include build time of the top build- Returns:
- estimation for time left to finish all builds in graph in milliseconds or -1 if estimate is not available.
-
getDurationOvertime
long getDurationOvertime(boolean includeTopBuild)
Returns current overtime for builds graph, or -1 if there is no overtime or estimate is not available.- Parameters:
includeTopBuild
- - if false, do not include overtime of the top build- Returns:
- see above
-
getCompletedPercent
int getCompletedPercent(boolean includeTopBuild)
Returns string representing progress in percents.- Parameters:
includeTopBuild
- - if false, do not include build time of top build- Returns:
- Returns progress in percents
-
getStartedDate
@Nullable Date getStartedDate()
Get date of first build in chain started. Does not include builds, substituded by chain optimizer- Returns:
- null if chain has not been started yet, otherwise see above
-
getTimePassed
long getTimePassed()
Get number of millis passed since start of the chain- Returns:
- number of milliseconds since chain start
-
-