FileDocCategorySizeDatePackage
PEPeerStats.javaAPI DocAzureus 3.0.3.44872Thu Feb 01 22:32:56 GMT 2007None

PEPeerStats

public interface PEPeerStats
Provides peer statistics. It uses Average to compute its different averages.

Fields Summary
Constructors Summary
Methods Summary
public voidbytesDiscarded(int num_bytes)
The given number of bytes received from the peer were discarded.

param
num_bytes

public voiddataBytesReceived(int num_bytes)
The given number of data (payload) bytes have been received from the peer.

param
num_bytes

public voiddataBytesSent(int num_bytes)
The given number of data (payload) bytes have been sent to the peer.

param
num_bytes

public voiddiskReadComplete(long bytes)
Disk access stats methods

param
bytes

public intgetAggregatedDiskReadCount()

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

return
average speed.

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

return
average speed.

public intgetDownloadRateLimitBytesPerSecond()

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

return
estimated rate in bytes-per-second

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

return
estimated rate in bytes-per-second

public PEPeergetPeer()

public longgetProtocolReceiveRate()
Get the the average bytes-per-second speed that we are receiving protocol messages from the peer.

return
average speed.

public longgetProtocolSendRate()
Get the the average bytes-per-second speed that we are sending protocol messages to the peer.

return
average speed.

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

return
average speed

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

return
total discarded

public longgetTotalBytesDownloadedByPeer()
Get the number of bytes downloaded in total by this peer (includes data downloaded from all other peers).

return
total download bytes done

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

return
total

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

return
total

public longgetTotalDiskReadBytes()

public intgetTotalDiskReadCount()

public longgetTotalProtocolBytesReceived()
Get the total number of protocol (overhead) bytes received from the peer.

return
total

public longgetTotalProtocolBytesSent()
Get the total number of protocol (overhead) bytes sent to the peer.

return
total

public intgetUploadRateLimitBytesPerSecond()

public voidhasNewPiece(int piece_size)
The peer has completed a piece of the given byte size.

param
piece_size

public voidprotocolBytesReceived(int num_bytes)
The given number of protocol (overhead) bytes have been received from the peer.

param
num_bytes

public voidprotocolBytesSent(int num_bytes)
The given number of protocol (overhead) bytes have been sent to the peer.

param
num_bytes

public voidsetDownloadRateLimitBytesPerSecond(int bytes)

public voidsetUploadRateLimitBytesPerSecond(int bytes)

public voidstatisticalSentPiece(int piece_size)
The peer has statistically sent a piecce of the given byte size.

param
piece_size