Class SubProgressMeter


  • public class SubProgressMeter
    extends com.atlassian.core.util.ProgressMeter
    Allow us to break a single ProgressMeter to several ProgressMeter. Help to to easier to report progress
    Since:
    5.10
    • Constructor Detail

      • SubProgressMeter

        public SubProgressMeter​(com.atlassian.core.util.ProgressMeter outerMeter,
                                float percentageOfOuterMeter,
                                int total)
    • Method Detail

      • setPercentage

        public void setPercentage​(int count,
                                  int total)
        Use this method to set the completion %age to object 10 of 30 etc.
        Overrides:
        setPercentage in class com.atlassian.core.util.ProgressMeter
        Parameters:
        count - The current object count in progress
        total - The total number of objects to be processed
      • setStatus

        public void setStatus​(String status)
        Overrides:
        setStatus in class com.atlassian.core.util.ProgressMeter
      • setPercentage

        public void setPercentage​(int percentageComplete)
        Overrides:
        setPercentage in class com.atlassian.core.util.ProgressMeter
      • setCompletedSuccessfully

        public void setCompletedSuccessfully​(boolean completedSuccessfully)
        Overrides:
        setCompletedSuccessfully in class com.atlassian.core.util.ProgressMeter