| |
|
| java.lang.Object com.coldcore.coloradoftp.plugin.intellipack.connection.Speedometer
Speedometer | public class Speedometer (Code) | | Contains number of bytes transferred by all connections.
This class reset itself every second.
|
bytesLastSecond | protected long bytesLastSecond(Code) | | |
bytesTransferredSec | protected long bytesTransferredSec(Code) | | |
lastSecondTime | protected long lastSecondTime(Code) | | |
Speedometer | public Speedometer()(Code) | | |
add | public void add(long amount)(Code) | | Add amount of transferred bytes
Parameters: amount - |
checkTime | protected void checkTime()(Code) | | Test if this is a time to reset and resets
|
getBytesThisSecond | public long getBytesThisSecond()(Code) | | Get amount of butes transferred during the current second
Bytes transferred by all data connections |
getLastSecondBytes | public long getLastSecondBytes()(Code) | | Get bytes transferred during the last second
Bytes per second of all data connections during the last second |
|
|
|