org.alliance.core.comm
Class BandwidthAnalyzer
java.lang.Object
org.alliance.core.comm.BandwidthAnalyzer
public class BandwidthAnalyzer
- extends java.lang.Object
Created by IntelliJ IDEA.
User: maciek
Date: 2006-jan-29
Time: 16:51:59
To change this template use File | Settings | File Templates.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INNER_INVERVAL
public static final int INNER_INVERVAL
- See Also:
- Constant Field Values
OUTER_INTERVAL
public static final int OUTER_INTERVAL
- See Also:
- Constant Field Values
BandwidthAnalyzer
public BandwidthAnalyzer(int updateInterval)
BandwidthAnalyzer
public BandwidthAnalyzer()
BandwidthAnalyzer
public BandwidthAnalyzer(int updateInterval,
int highestCps)
update
public void update(int bytes)
getCPS
public double getCPS()
getHumanReadable
public java.lang.String getHumanReadable()
getHumanReadable
public static java.lang.String getHumanReadable(double cps)
getHighestCPS
public double getHighestCPS()
getHighestCPSHumanReadable
public java.lang.String getHighestCPSHumanReadable()
getTotalBytes
public long getTotalBytes()
getAverageCps
public double getAverageCps()
hasGoodAverage
public boolean hasGoodAverage()