|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.builder.BuildProgressBarImpl
public class BuildProgressBarImpl
Constructor Summary | |
---|---|
BuildProgressBarImpl(CurrentlyBuilding currentlyBuilding)
|
Method Summary | |
---|---|
long |
getAverageBuildDuration()
|
double |
getPercentageCompleted()
Elapsed time / total time |
java.lang.String |
getPercentageCompletedAsString()
|
java.lang.String |
getPrettyTimeRemaining()
|
java.lang.String |
getPrettyTimeRemaining(boolean isLong)
|
int |
getTimeElpasedWidth()
Return the width of the "elapsed time" progress bar |
int |
getTotalTimeWidth()
Return the width of the "total time" progress bar |
boolean |
isUnderAverageTime()
Returns true if elapse time < ave time |
boolean |
isValid()
Returns true iff the ave time is > 0 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BuildProgressBarImpl(CurrentlyBuilding currentlyBuilding)
Method Detail |
---|
public boolean isValid()
BuildProgressBar
isValid
in interface BuildProgressBar
public boolean isUnderAverageTime()
BuildProgressBar
isUnderAverageTime
in interface BuildProgressBar
public double getPercentageCompleted()
BuildProgressBar
getPercentageCompleted
in interface BuildProgressBar
public java.lang.String getPrettyTimeRemaining(boolean isLong)
getPrettyTimeRemaining
in interface BuildProgressBar
isLong
- true if you want the long-winded version, false if you want the short version
public java.lang.String getPrettyTimeRemaining()
getPrettyTimeRemaining
in interface BuildProgressBar
public java.lang.String getPercentageCompletedAsString()
public int getTotalTimeWidth()
BuildProgressBar
getTotalTimeWidth
in interface BuildProgressBar
public int getTimeElpasedWidth()
BuildProgressBar
getTimeElpasedWidth
in interface BuildProgressBar
public long getAverageBuildDuration()
getAverageBuildDuration
in interface BuildProgressBar
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |