Package com.atlassian.bamboo.progressbar
Interface ProgressBar
- All Known Implementing Classes:
ProgressBarImpl
public interface ProgressBar
This object encapsulates the bar graph that represents a progress of a given build
-
Method Summary
Modifier and TypeMethodDescriptionlong
Returns prospected duration of a task.double
Elapsed time / total timegetPrettyTimeRemaining
(boolean isLong) int
Return the width of the "elapsed time" progress barint
Return the width of the "total time" progress barboolean
Returns true if elapse time < ave timeboolean
isValid()
Returns true iff the ave time is > 0
-
Method Details
-
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
- 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()
-