Package com.biglybt.pif.peers
Interface PeerManagerStats
- All Known Implementing Classes:
PeerManagerStatsImpl
public interface PeerManagerStats
-
Method Summary
Modifier and TypeMethodDescriptionint
int
long
long
long
long
int
For an external process receiving bytes on behalf of this download this gives the current rate-limited number of bytes that can be received.int
For an external process sending bytes on behalf of this download this gives the current rate-limited number of bytes that can be sent.long
long
void
permittedReceiveBytesUsed
(int bytes) The given number of data (payload) bytes have been received.void
permittedSendBytesUsed
(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
int 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
int 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
-