Class BaseProcessCheck.IOCounter

java.lang.Object
PamController.status.BaseProcessCheck.IOCounter
Enclosing class:
BaseProcessCheck

public class BaseProcessCheck.IOCounter extends Object
  • Constructor Details

    • IOCounter

      public IOCounter(double minRate)
      Create a counter and set it's minimum acceptable data rate
      Parameters:
      minRate - minimum data rate
    • IOCounter

      public IOCounter(double minRate, double maxRate)
      Create a counter and set it's minimum and maximum acceptable data rate
      Parameters:
      minRate - minimum data rate
      maxRate - maximum data rate
  • Method Details

    • getRateAndSet

      public double getRateAndSet(long timeMillis)
    • reset

      public void reset(long timeMillis)
    • getMinRate

      public double getMinRate()
    • setMinRate

      public void setMinRate(double minRate)
    • getMaxRate

      public double getMaxRate()
      Returns:
      the maxRate
    • setMaxRate

      public void setMaxRate(double maxRate)
      Parameters:
      maxRate - the maxRate to set