Methods Summary |
---|
protected void | addAnnounce(long ul_diff, long dl_diff, long le_diff, boolean biased_peer)
announce_count++;
uploaded += ul_diff<0?0:ul_diff; // should always be +ve
downloaded += dl_diff<0?0:dl_diff;
left += le_diff; // can be +ve at start (0->x) then neg after
if ( left < 0 ){
left = 0;
}
if ( biased_peer ){
biased_uploaded += ul_diff<0?0:ul_diff; // should always be +ve
biased_downloaded += dl_diff<0?0:dl_diff;
}
|
protected void | addCompleted()
completed_count++;
|
protected void | addScrape()
scrape_count++;
|
protected void | addXferStats(int in, int out)
bytes_in += in;
bytes_out += out;
|
public long | getAmountLeft()
return( left );
|
public long | getAnnounceCount()
return( announce_count );
|
public int | getBadNATPeerCount()
return( torrent.getBadNATPeerCount());
|
public long | getBiasedDownloaded()
return( biased_downloaded );
|
public long | getBiasedUploaded()
return( biased_uploaded );
|
public long | getBytesIn()
return( bytes_in );
|
public long | getBytesOut()
return( bytes_out );
|
public long | getCompletedCount()
return( completed_count );
|
public long | getDownloaded()
return( downloaded );
|
public int | getLeecherCount()
return( torrent.getLeecherCount());
|
public int | getQueuedCount()
return( torrent.getQueuedCount());
|
public long | getScrapeCount()
return( scrape_count );
|
public int | getSeedCount()
return( torrent.getSeedCount());
|
public java.lang.String | getString()
return( "an=" + announce_count + ",sc=" + scrape_count + ",co=" + completed_count +",le=" + getLeecherCount() + ",se=" + getSeedCount() + ",q=" + getQueuedCount() + ",bi=" + bytes_in + ",bo=" + bytes_out );
|
public long | getUploaded()
return( uploaded );
|
protected void | removeLeft(long _left)
left -= _left;
if ( left < 0 ){
left = 0;
}
|