FileDocCategorySizeDatePackage
PeerStats.javaAPI DocAzureus 3.0.3.43310Sat May 27 23:00:54 BST 2006org.gudy.azureus2.plugins.peers

PeerStats

public interface PeerStats
Statistical information for a Peer.

Fields Summary
Constructors Summary
Methods Summary
public voiddiscarded(int bytes)
The given number of bytes received from the peer were discarded. This number gets added to the total and is used to calculate rates that include disgarded inforamtion.

Use this if you are talking to the peer outside of Azureus' API, and want your stats added into Azureus'

param
bytes
since
2.1.0.0

public intgetDownloadAverage()
Get the the average bytes-per-second speed that we are receiving piece data from the peer.

return
average speed.
since
2.0.6.0

public intgetReception()
Get the the longer-average bytes-per-second speed at which the peer is uploading data to us.

return
average speed
since
2.0.6.0

public intgetStatisticSentAverage()
Get the estimated total upload rate of the peer.

return
estimated rate in bytes-per-second
since
2.0.6.0

public longgetTimeSinceConnectionEstablished()
Get the amount of time that has elapsed since the connection with the peer has been established.

return
Amount of time in ms.
since
2.4.0.0

public intgetTotalAverage()
Get the estimated total download rate of the peer.

return
estimated rate in bytes-per-second

public longgetTotalDiscarded()
Get the total number of discarded bytes received from the peer.

return
total discarded
since
2.0.6.0

public longgetTotalReceived()
Get the total number of data (payload) bytes received from the peer.

return
total
since
2.0.6.0

public longgetTotalSent()
Get the total number of data (payload) bytes sent to the peer.

return
total
since
2.0.6.0

public intgetUploadAverage()
Get the the average bytes-per-second speed that we are sending piece data to the peer.

return
average speed.
since
2.0.6.0

public voidreceived(int bytes)
The given number of data (payload) bytes have been received from the peer. This number gets added to the total and is used to calculate the rate.

Use this if you are talking to the peer outside of Azureus' API, and want your stats added into Azureus'

param
bytes
since
2.1.0.0