|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PEPeerStats
Provides peer statistics. It uses Average to compute its different averages.
Method Summary | |
---|---|
void |
bytesDiscarded(int num_bytes)
The given number of bytes received from the peer were discarded. |
void |
dataBytesReceived(int num_bytes)
The given number of data (payload) bytes have been received from the peer. |
void |
dataBytesSent(int num_bytes)
The given number of data (payload) bytes have been sent to the peer. |
void |
diskReadComplete(long bytes)
Disk access stats methods |
int |
getAggregatedDiskReadCount()
|
long |
getDataReceiveRate()
Get the the average bytes-per-second speed that we are receiving piece data from the peer. |
long |
getDataSendRate()
Get the the average bytes-per-second speed that we are sending piece data to the peer. |
int |
getDownloadRateLimitBytesPerSecond()
|
long |
getEstimatedDownloadRateOfPeer()
Get the estimated total download rate of the peer. |
long |
getEstimatedSecondsToCompletion()
|
long |
getEstimatedUploadRateOfPeer()
Get the estimated total upload rate of the peer. |
PEPeer |
getPeer()
|
int |
getPermittedBytesToReceive()
|
int |
getPermittedBytesToSend()
|
long |
getProtocolReceiveRate()
Get the the average bytes-per-second speed that we are receiving protocol messages from the peer. |
long |
getProtocolSendRate()
Get the the average bytes-per-second speed that we are sending protocol messages to the peer. |
long |
getSmoothDataReceiveRate()
Get the the longer-average bytes-per-second speed at which the peer is uploading data to us. |
long |
getTotalBytesDiscarded()
Get the total number of discarded bytes received from the peer. |
long |
getTotalBytesDownloadedByPeer()
Get the number of bytes downloaded in total by this peer (includes data downloaded from all other peers). |
long |
getTotalDataBytesReceived()
Get the total number of data (payload) bytes received from the peer. |
long |
getTotalDataBytesSent()
Get the total number of data (payload) bytes sent to the peer. |
long |
getTotalDiskReadBytes()
|
int |
getTotalDiskReadCount()
|
long |
getTotalProtocolBytesReceived()
Get the total number of protocol (overhead) bytes received from the peer. |
long |
getTotalProtocolBytesSent()
Get the total number of protocol (overhead) bytes sent to the peer. |
int |
getUploadRateLimitBytesPerSecond()
|
void |
hasNewPiece(int piece_size)
The peer has completed a piece of the given byte size. |
void |
permittedReceiveBytesUsed(int num)
|
void |
permittedSendBytesUsed(int num)
|
void |
protocolBytesReceived(int num_bytes)
The given number of protocol (overhead) bytes have been received from the peer. |
void |
protocolBytesSent(int num_bytes)
The given number of protocol (overhead) bytes have been sent to the peer. |
void |
setDownloadRateLimitBytesPerSecond(int bytes)
|
void |
setPeer(PEPeer p)
|
void |
setUploadRateLimitBytesPerSecond(int bytes)
|
void |
statisticalSentPiece(int piece_size)
The peer has statistically sent a piecce of the given byte size. |
Method Detail |
---|
PEPeer getPeer()
void setPeer(PEPeer p)
void dataBytesSent(int num_bytes)
num_bytes
- void protocolBytesSent(int num_bytes)
num_bytes
- void dataBytesReceived(int num_bytes)
num_bytes
- void protocolBytesReceived(int num_bytes)
num_bytes
- void bytesDiscarded(int num_bytes)
num_bytes
- void hasNewPiece(int piece_size)
piece_size
- void statisticalSentPiece(int piece_size)
piece_size
- long getDataReceiveRate()
long getProtocolReceiveRate()
long getTotalDataBytesReceived()
long getTotalProtocolBytesReceived()
long getDataSendRate()
long getProtocolSendRate()
long getTotalDataBytesSent()
long getTotalProtocolBytesSent()
long getSmoothDataReceiveRate()
long getTotalBytesDiscarded()
long getEstimatedDownloadRateOfPeer()
long getEstimatedUploadRateOfPeer()
long getEstimatedSecondsToCompletion()
long getTotalBytesDownloadedByPeer()
void diskReadComplete(long bytes)
bytes
- int getTotalDiskReadCount()
int getAggregatedDiskReadCount()
long getTotalDiskReadBytes()
void setUploadRateLimitBytesPerSecond(int bytes)
void setDownloadRateLimitBytesPerSecond(int bytes)
int getUploadRateLimitBytesPerSecond()
int getDownloadRateLimitBytesPerSecond()
int getPermittedBytesToSend()
void permittedSendBytesUsed(int num)
int getPermittedBytesToReceive()
void permittedReceiveBytesUsed(int num)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |