Interface PeerManagerStats
- All Known Implementing Classes:
PeerManagerStatsImpl
public interface PeerManagerStats
-
Method Summary
Modifier and TypeMethodDescriptionintintlonglonglonglonglongFor an external process receiving bytes on behalf of this download this gives the current rate-limited number of bytes that can be received.longFor an external process sending bytes on behalf of this download this gives the current rate-limited number of bytes that can be sent.longlongvoidpermittedReceiveBytesUsed(int bytes) The given number of data (payload) bytes have been received.voidpermittedSendBytesUsed(int bytes) The given number of data (payload) bytes have been sent.
-
Method Details
-
getConnectedSeeds
int getConnectedSeeds() -
getConnectedLeechers
int getConnectedLeechers() -
getDownloaded
long getDownloaded() -
getUploaded
long getUploaded() -
getDownloadAverage
long getDownloadAverage() -
getUploadAverage
long getUploadAverage() -
getDiscarded
long getDiscarded() -
getHashFailBytes
long getHashFailBytes() -
getPermittedBytesToReceive
long getPermittedBytesToReceive()For an external process receiving bytes on behalf of this download this gives the current rate-limited number of bytes that can be received. Update with actual send using 'received' below.- Returns:
- Since:
- 4.4.0.7
-
permittedReceiveBytesUsed
void permittedReceiveBytesUsed(int bytes) The given number of data (payload) bytes have been received. This number gets added to the total and is used to calculate the rate.Use this if you are talking to stuff outside of Azureus' API, and want your stats added into Azureus'
- Parameters:
bytes-- Since:
- 4.4.0.7
-
getPermittedBytesToSend
long getPermittedBytesToSend()For an external process sending bytes on behalf of this download this gives the current rate-limited number of bytes that can be sent. Update with actual send using 'sent' below.- Returns:
- Since:
- 4.4.0.7
-
permittedSendBytesUsed
void permittedSendBytesUsed(int bytes) The given number of data (payload) bytes have been sent. This number gets added to the total and is used to calculate the rate.Use this if you are talking to stuff outside of Azureus' API, and want your stats added into Azureus'
- Parameters:
bytes-- Since:
- 4.4.0.7
-