|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.TimerTask
org.universAAL.lddi.zwave.exporter.Server.TransferRateCalculator
public class TransferRateCalculator
Class to calculate transfer rates.
Field Summary | |
---|---|
protected long |
calculationPeriod
TransferRateCalculator calculationPeriod milliseconds. |
Constructor Summary | |
---|---|
TransferRateCalculator()
Constructor. |
|
TransferRateCalculator(long calcPeriodMilisecons)
Constructor. |
Method Summary | |
---|---|
float |
getIncomingByteRate()
Returns the incoming byte rate. |
float |
getOutgoingByteRate()
Returns the outgoing byte rate. |
long |
getTotalIncomingBytes()
Returns the total incoming bytes. |
long |
getTotalOutgoingBytes()
Returns the total outgoing bytes. |
void |
newIncomingData(long dataSize)
New data received. |
void |
newOutgoingData(long dataSize)
New data sent. |
void |
run()
Run. |
Methods inherited from class java.util.TimerTask |
---|
cancel, scheduledExecutionTime |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected long calculationPeriod
Constructor Detail |
---|
public TransferRateCalculator()
public TransferRateCalculator(long calcPeriodMilisecons)
calcPeriodMilisecons
- time to update calculations in millisecondsMethod Detail |
---|
public float getIncomingByteRate()
public float getOutgoingByteRate()
public long getTotalIncomingBytes()
public long getTotalOutgoingBytes()
public void newIncomingData(long dataSize)
dataSize
- size of the new incoming datapublic void newOutgoingData(long dataSize)
dataSize
- size of the new outgoing datapublic void run()
run
in interface Runnable
run
in class TimerTask
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |