public class NetworkMetrics extends Object
Constructor and Description |
---|
NetworkMetrics() |
Modifier and Type | Method and Description |
---|---|
float |
getBytesReceivedRate()
Returns the average number of bytes per second received.
|
float |
getBytesSentRate()
Returns the average number of bytes per second sent.
|
void |
setBytesReceivedRate(float bytesReceivedRate)
Sets the average number of bytes per second received.
|
void |
setBytesSentRate(float bytesSentRate)
Sets the average number of bytes per second sent.
|
public float getBytesReceivedRate()
public float getBytesSentRate()
public void setBytesReceivedRate(float bytesReceivedRate)
bytesReceivedRate
- the average number of bytes per second receivedpublic void setBytesSentRate(float bytesSentRate)
bytesSentRate
- the average number of bytes per second sent