|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.progressbar.ProgressBarImpl
public class ProgressBarImpl
Constructor Summary | |
---|---|
ProgressBarImpl(ExecutionStatus executionStatus)
|
Method Summary | |
---|---|
long |
getEstimatedDuration()
Returns prospected duration of a task. |
double |
getPercentageCompleted()
Elapsed time / total time |
java.lang.String |
getPercentageCompletedAsString()
|
java.lang.String |
getPrettyTimeRemaining()
|
java.lang.String |
getPrettyTimeRemaining(boolean isLong)
|
int |
getTimeElapsedWidth()
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 ProgressBarImpl(ExecutionStatus executionStatus)
Method Detail |
---|
public boolean isValid()
ProgressBar
isValid
in interface ProgressBar
public boolean isUnderAverageTime()
ProgressBar
isUnderAverageTime
in interface ProgressBar
public double getPercentageCompleted()
ProgressBar
getPercentageCompleted
in interface ProgressBar
public java.lang.String getPrettyTimeRemaining(boolean isLong)
getPrettyTimeRemaining
in interface ProgressBar
isLong
- true if you want the long-winded version, false if you want the short version
public java.lang.String getPrettyTimeRemaining()
getPrettyTimeRemaining
in interface ProgressBar
public java.lang.String getPercentageCompletedAsString()
getPercentageCompletedAsString
in interface ProgressBar
public int getTotalTimeWidth()
ProgressBar
getTotalTimeWidth
in interface ProgressBar
public int getTimeElapsedWidth()
ProgressBar
getTimeElapsedWidth
in interface ProgressBar
public long getEstimatedDuration()
ProgressBar
getEstimatedDuration
in interface ProgressBar
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |