|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object forward.server.TransferVolume
public class TransferVolume
This class stores an amount of transfered bytes and when this transfer was done. So we can use the information for calculating bandwidth usage for a specified time interval.
Field Summary | |
---|---|
private long |
m_timeStamp
Stores the timestamp, when the transfer was done. |
private int |
m_transferedBytes
Stores the number of transfered bytes. |
Constructor Summary | |
---|---|
TransferVolume(int a_volume)
Creates a new instance of TransferVolume. |
Method Summary | |
---|---|
long |
getTimeStamp()
Returns the timestamp, when this TransferVolume was created (the transfer was done). |
int |
getVolume()
Returns the number of transfered bytes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int m_transferedBytes
private long m_timeStamp
Constructor Detail |
---|
public TransferVolume(int a_volume)
a_volume
- The amount of transfered bytes.Method Detail |
---|
public int getVolume()
public long getTimeStamp()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |