Class PeerManagerStatsImpl
java.lang.Object
com.biglybt.pifimpl.local.peers.PeerManagerStatsImpl
- All Implemented Interfaces:
PeerManagerStats
-
Field Summary
Fields -
Constructor Summary
Constructors -
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.
-
Field Details
-
manager
-
stats
-
-
Constructor Details
-
PeerManagerStatsImpl
-
-
Method Details
-
getConnectedSeeds
public int getConnectedSeeds()- Specified by:
getConnectedSeedsin interfacePeerManagerStats
-
getConnectedLeechers
public int getConnectedLeechers()- Specified by:
getConnectedLeechersin interfacePeerManagerStats
-
getDownloaded
public long getDownloaded()- Specified by:
getDownloadedin interfacePeerManagerStats
-
getUploaded
public long getUploaded()- Specified by:
getUploadedin interfacePeerManagerStats
-
getDownloadAverage
public long getDownloadAverage()- Specified by:
getDownloadAveragein interfacePeerManagerStats
-
getUploadAverage
public long getUploadAverage()- Specified by:
getUploadAveragein interfacePeerManagerStats
-
getDiscarded
public long getDiscarded()- Specified by:
getDiscardedin interfacePeerManagerStats
-
getHashFailBytes
public long getHashFailBytes()- Specified by:
getHashFailBytesin interfacePeerManagerStats
-
getPermittedBytesToReceive
public long getPermittedBytesToReceive()Description copied from interface:PeerManagerStatsFor 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.- Specified by:
getPermittedBytesToReceivein interfacePeerManagerStats- Returns:
-
permittedReceiveBytesUsed
public void permittedReceiveBytesUsed(int bytes) Description copied from interface:PeerManagerStatsThe 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'
- Specified by:
permittedReceiveBytesUsedin interfacePeerManagerStats- Parameters:
bytes-
-
getPermittedBytesToSend
public long getPermittedBytesToSend()Description copied from interface:PeerManagerStatsFor 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.- Specified by:
getPermittedBytesToSendin interfacePeerManagerStats- Returns:
-
permittedSendBytesUsed
public void permittedSendBytesUsed(int bytes) Description copied from interface:PeerManagerStatsThe 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'
- Specified by:
permittedSendBytesUsedin interfacePeerManagerStats- Parameters:
bytes-
-