Class ProgressInfo
- java.lang.Object
-
- jetbrains.buildServer.serverSide.maintenance.ProgressInfo
-
public class ProgressInfo extends Object
Progress information. Provides information about how much part of work has already done.Value object.
-
-
Constructor Summary
Constructors Constructor Description ProgressInfo(long done, long estimated, String phase)
Trivial constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getDone()
Returns how many conditional units of work have already done.String
getDoneHumanized()
long
getEstimated()
Returns the work estimation in conditional units.String
getEstimatedHumanized()
int
getPercent()
Returns an amount of completed work in percent, that is equivalent togetDone()
/getEstimated()
* 100%.String
getPhase()
Returns the current work phase as a human readable phrase.String
toString()
-
-
-
Constructor Detail
-
ProgressInfo
public ProgressInfo(long done, long estimated, String phase)
Trivial constructor.- Parameters:
done
- seegetDone()
.estimated
- seegetEstimated()
.phase
- seegetPhase()
.
-
-
Method Detail
-
getDone
public long getDone()
Returns how many conditional units of work have already done.- Returns:
- see above.
- See Also:
getPercent()
-
getDoneHumanized
public String getDoneHumanized()
-
getEstimated
public long getEstimated()
Returns the work estimation in conditional units.- Returns:
- see above.
-
getEstimatedHumanized
public String getEstimatedHumanized()
-
getPhase
public String getPhase()
Returns the current work phase as a human readable phrase.- Returns:
- see above.
-
getPercent
public int getPercent()
Returns an amount of completed work in percent, that is equivalent togetDone()
/getEstimated()
* 100%.- Returns:
- an amount of completed work in percent
-
-