Package com.atlassian.bamboo.progressbar
Interface ProgressBar
-
- All Known Subinterfaces:
BuildProgressBar
- All Known Implementing Classes:
BuildProgressBarImpl,ProgressBarImpl
public interface ProgressBarThis object encapsulates the bar graph that represents a progress of a given build
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetEstimatedDuration()Returns prospected duration of a task.doublegetPercentageCompleted()Elapsed time / total timeStringgetPercentageCompletedAsString()StringgetPrettyTimeRemaining()StringgetPrettyTimeRemaining(boolean isLong)intgetTimeElapsedWidth()Return the width of the "elapsed time" progress barintgetTotalTimeWidth()Return the width of the "total time" progress barbooleanisUnderAverageTime()Returns true if elapse time < ave timebooleanisValid()Returns true iff the ave time is > 0
-
-
-
Method Detail
-
isValid
boolean isValid()
Returns true iff the ave time is > 0- Returns:
-
isUnderAverageTime
boolean isUnderAverageTime()
Returns true if elapse time < ave time- Returns:
- true if elapse time < ave time
-
getPercentageCompleted
double getPercentageCompleted()
Elapsed time / total time- Returns:
- Elapsed time / total time
-
getPrettyTimeRemaining
String getPrettyTimeRemaining()
- Returns:
- Returns the approximate amount of time remaining
-
getPrettyTimeRemaining
String getPrettyTimeRemaining(boolean isLong)
- Parameters:
isLong- true if you want the long-winded version, false if you want the short version- Returns:
- Returns the approximate amount of time remaining
-
getTotalTimeWidth
int getTotalTimeWidth()
Return the width of the "total time" progress bar- Returns:
- width of bar
-
getTimeElapsedWidth
int getTimeElapsedWidth()
Return the width of the "elapsed time" progress bar- Returns:
-
getEstimatedDuration
long getEstimatedDuration()
Returns prospected duration of a task.- Returns:
- estimated execution total time in milliseconds
-
getPercentageCompletedAsString
String getPercentageCompletedAsString()
-
-