Methods Summary |
---|
public void | bytesDiscarded(int num_bytes)
total_bytes_discarded += num_bytes;
|
public void | dataBytesReceived(int num_bytes)
total_data_bytes_received += num_bytes;
data_receive_speed.addValue( num_bytes );
receive_speed_for_choking.addValue( num_bytes );
|
public void | dataBytesSent(int num_bytes)
total_data_bytes_sent += num_bytes;
data_send_speed.addValue( num_bytes );
|
public void | diskReadComplete(long bytes)
disk_read_bytes += bytes;
disk_read_count++;
if ( bytes > 0 ){
disk_aggregated_read_count++;
}
|
public int | getAggregatedDiskReadCount() return( disk_aggregated_read_count );
|
public long | getDataReceiveRate() return data_receive_speed.getAverage();
|
public long | getDataSendRate() return data_send_speed.getAverage();
|
public int | getDownloadRateLimitBytesPerSecond()return owner.getDownloadRateLimitBytesPerSecond();
|
public long | getEstimatedDownloadRateOfPeer() return estimated_download_speed.getAverage();
|
public long | getEstimatedUploadRateOfPeer() return estimated_upload_speed.getAverage();
|
public PEPeer | getPeer()
return( owner );
|
public long | getProtocolReceiveRate() return protocol_receive_speed.getAverage();
|
public long | getProtocolSendRate() return protocol_send_speed.getAverage();
|
public long | getSmoothDataReceiveRate() return receive_speed_for_choking.getAverage();
|
public long | getTotalBytesDiscarded() return total_bytes_discarded;
|
public long | getTotalBytesDownloadedByPeer() return total_bytes_downloaded;
|
public long | getTotalDataBytesReceived() return total_data_bytes_received;
|
public long | getTotalDataBytesSent() return total_data_bytes_sent;
|
public long | getTotalDiskReadBytes() return( disk_read_bytes );
|
public int | getTotalDiskReadCount() return( disk_read_count );
|
public long | getTotalProtocolBytesReceived() return total_protocol_bytes_received;
|
public long | getTotalProtocolBytesSent() return total_protocol_bytes_sent;
|
public int | getUploadRateLimitBytesPerSecond()return owner.getUploadRateLimitBytesPerSecond();
|
public void | hasNewPiece(int piece_size)
total_bytes_downloaded += piece_size;
estimated_download_speed.addValue( piece_size );
|
public void | protocolBytesReceived(int num_bytes)
total_protocol_bytes_received += num_bytes;
protocol_receive_speed.addValue( num_bytes );
//dont count protocol overhead towards a peer's choke/unchoke value, only piece data
|
public void | protocolBytesSent(int num_bytes)
total_protocol_bytes_sent += num_bytes;
protocol_send_speed.addValue( num_bytes );
|
public void | setDownloadRateLimitBytesPerSecond(int bytes)owner.setDownloadRateLimitBytesPerSecond( bytes );
|
public void | setUploadRateLimitBytesPerSecond(int bytes)owner.setUploadRateLimitBytesPerSecond( bytes );
|
public void | statisticalSentPiece(int piece_size)
estimated_upload_speed.addValue( piece_size );
|