public class ProgressMeter extends Object
Constructor and Description |
---|
ProgressMeter() |
Modifier and Type | Method and Description |
---|---|
int |
getCurrentCount() |
int |
getPercentageComplete() |
String |
getStatus() |
int |
getTotal() |
boolean |
isCompletedSuccessfully()
This method should only be called once you know the task is complete (which is discovered by calling
getPercentageComplete() . |
void |
setCompletedSuccessfully(boolean completedSuccessfully) |
void |
setCurrentCount(int currentCount) |
void |
setPercentage(int percentageComplete) |
void |
setPercentage(int count,
int total)
Use this method to set the completion %age to object 10 of 30 etc.
|
void |
setStatus(String status) |
void |
setTotalObjects(int total) |
public void setPercentage(int count, int total)
count
- The current object count in progresstotal
- The total number of objects to be processedpublic void setStatus(String status)
public int getPercentageComplete()
public String getStatus()
public void setPercentage(int percentageComplete)
public int getCurrentCount()
public void setCurrentCount(int currentCount)
public int getTotal()
public void setTotalObjects(int total)
public boolean isCompletedSuccessfully()
getPercentageComplete()
.public void setCompletedSuccessfully(boolean completedSuccessfully)
Copyright © 2003–2017 Atlassian. All rights reserved.