org.gudy.azureus2.plugins.peers
Interface PeerManagerStats

All Known Implementing Classes:
PeerManagerStatsImpl

public interface PeerManagerStats

Author:
parg

Method Summary
 int getConnectedLeechers()
           
 int getConnectedSeeds()
           
 long getDiscarded()
           
 long getDownloadAverage()
           
 long getDownloaded()
           
 long getHashFailBytes()
           
 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.
 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.
 long getUploadAverage()
           
 long getUploaded()
           
 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 Detail

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