|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PeerStats
Statistical information for a Peer.
Method Summary | |
---|---|
void |
discarded(int bytes)
The given number of bytes received from the peer were discarded. |
int |
getDownloadAverage()
Get the the average bytes-per-second speed that we are receiving piece data from the peer. |
int |
getDownloadRateLimit()
|
long |
getOverallBytesRemaining()
|
int |
getPermittedBytesToReceive()
For an external process receiving bytes on behalf of this peer this gives the current rate-limited number of bytes that can be received. |
int |
getPermittedBytesToSend()
For an external process sending bytes on behalf of this peer this gives the current rate-limited number of bytes that can be sent. |
int |
getReception()
Get the the longer-average bytes-per-second speed at which the peer is uploading data to us. |
int |
getStatisticSentAverage()
Get the estimated total upload rate of the peer. |
long |
getTimeSinceConnectionEstablished()
Get the amount of time that has elapsed since the connection with the peer has been established. |
int |
getTotalAverage()
Get the estimated total download rate of the peer. |
long |
getTotalDiscarded()
Get the total number of discarded bytes received from the peer. |
long |
getTotalReceived()
Get the total number of data (payload) bytes received from the peer. |
long |
getTotalSent()
Get the total number of data (payload) bytes sent to the peer. |
int |
getUploadAverage()
Get the the average bytes-per-second speed that we are sending piece data to the peer. |
int |
getUploadRateLimit()
|
void |
permittedReceiveBytesUsed(int bytes)
|
void |
permittedSendBytesUsed(int bytes)
|
void |
received(int bytes)
The given number of data (payload) bytes have been sent to the peer. |
void |
sent(int bytes)
The given number of data (payload) bytes have been received from the peer. |
void |
setDownloadRateLimit(int bytes_per_sec)
|
void |
setUploadRateLimit(int bytes_per_sec)
|
Method Detail |
---|
int getDownloadAverage()
int getReception()
int getUploadAverage()
int getTotalAverage()
long getTotalDiscarded()
long getTotalSent()
long getTotalReceived()
int getStatisticSentAverage()
int getPermittedBytesToReceive()
void permittedReceiveBytesUsed(int bytes)
int getPermittedBytesToSend()
void permittedSendBytesUsed(int bytes)
void received(int bytes)
Use this if you are talking to the peer outside of Azureus' API, and want your stats added into Azureus'
bytes
- void sent(int bytes)
Use this if you are talking to the peer outside of Azureus' API, and want your stats added into Azureus'
bytes
- void discarded(int bytes)
Use this if you are talking to the peer outside of Azureus' API, and want your stats added into Azureus'
bytes
- long getTimeSinceConnectionEstablished()
void setDownloadRateLimit(int bytes_per_sec)
int getDownloadRateLimit()
void setUploadRateLimit(int bytes_per_sec)
bytes_per_sec
- int getUploadRateLimit()
bytes_per_sec
- long getOverallBytesRemaining()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |