Package PamController.status
Class BaseProcessCheck.IOCounter
java.lang.Object
PamController.status.BaseProcessCheck.IOCounter
- Enclosing class:
BaseProcessCheck
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
double
double
getRateAndSet
(long timeMillis) void
reset
(long timeMillis) void
setMaxRate
(double maxRate) void
setMinRate
(double minRate)
-
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 ratemaxRate
- 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
-