Class ProgressBean

java.lang.Object
edu.internet2.middleware.grouper.ui.util.ProgressBean

public class ProgressBean extends Object
  • Constructor Details

    • ProgressBean

      public ProgressBean()
  • Method Details

    • getException

      public Exception getException()
    • setException

      public void setException(Exception exception)
    • isThisLastStatus

      public boolean isThisLastStatus()
      decrement the status countdown and see if this is the last one
      Returns:
      true if this is the last status
    • getElapsedSeconds

      public int getElapsedSeconds()
      get elapsed seconds
      Returns:
      seconds
    • getElapsedMinutes

      public int getElapsedMinutes()
      get elapsed minutes
      Returns:
      seconds
    • getPercentComplete

      public int getPercentComplete()
      get the percent complete, e.g. 13
      Returns:
      the percent complete
    • getProgressCompleteRecords

      public long getProgressCompleteRecords()
      number of records complete so far
      Returns:
      the progressCompleteRecords
    • addProgressCompleteRecords

      public void addProgressCompleteRecords(long complete)
    • getProgressTotalRecords

      public long getProgressTotalRecords()
      total records to process (groups * subjects)
      Returns:
      the progressTotalRecords
    • getStartedMillis

      public long getStartedMillis()
      when this was started, millis since 1970
      Returns:
      the started
    • getStatusCountdown

      public int getStatusCountdown()
      if there are too many statuses then just quit
      Returns:
      the statusCountdown
    • isComplete

      public boolean isComplete()
      if done importing
      Returns:
      the complete
    • isHasException

      public boolean isHasException()
      if has exception
      Returns:
      the hasException
    • setComplete

      public void setComplete(boolean complete1)
      if done importing
      Parameters:
      complete1 - the complete to set
    • setHasException

      public void setHasException(boolean hasException1)
      if has exception
      Parameters:
      hasException1 - the hasException to set
    • setProgressCompleteRecords

      public void setProgressCompleteRecords(long progressCompleteRecords1)
      number of records complete so far
      Parameters:
      progressCompleteRecords1 - the progressCompleteRecords to set
    • setProgressTotalRecords

      public void setProgressTotalRecords(long progressTotalRecords1)
      total records to process (groups * subjects)
      Parameters:
      progressTotalRecords1 - the progressTotalRecords to set
    • setStartedMillis

      public void setStartedMillis(long started1)
      when this was started, millis since 1970
      Parameters:
      started1 - the ssetStartedMillistartedMillis
    • setStatusCountdown

      public void setStatusCountdown(int statusCountdown1)
      if there are too many statuses then just quit
      Parameters:
      statusCountdown1 - the statusCountdown to set