org.gudy.azureus2.core3.tracker.server.impl
Class TRTrackerServerTorrentStatsImpl

java.lang.Object
  extended by org.gudy.azureus2.core3.tracker.server.impl.TRTrackerServerTorrentStatsImpl
All Implemented Interfaces:
TRTrackerServerTorrentStats

public class TRTrackerServerTorrentStatsImpl
extends Object
implements TRTrackerServerTorrentStats


Constructor Summary
protected TRTrackerServerTorrentStatsImpl(TRTrackerServerTorrentImpl _torrent)
           
 
Method Summary
protected  void addAnnounce(long ul_diff, long dl_diff, long le_diff, boolean biased_peer)
           
protected  void addCompleted()
           
protected  void addScrape()
           
protected  void addXferStats(int in, int out)
           
 long getAmountLeft()
           
 long getAnnounceCount()
           
 int getBadNATPeerCount()
           
 long getBiasedDownloaded()
           
 long getBiasedUploaded()
           
 long getBytesIn()
           
 long getBytesOut()
           
 long getCompletedCount()
           
 long getDownloaded()
           
 int getLeecherCount()
           
 int getQueuedCount()
           
 long getScrapeCount()
           
 int getSeedCount()
           
 String getString()
           
 long getUploaded()
           
protected  void removeLeft(long _left)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TRTrackerServerTorrentStatsImpl

protected TRTrackerServerTorrentStatsImpl(TRTrackerServerTorrentImpl _torrent)
Method Detail

addAnnounce

protected void addAnnounce(long ul_diff,
                           long dl_diff,
                           long le_diff,
                           boolean biased_peer)

removeLeft

protected void removeLeft(long _left)

getAnnounceCount

public long getAnnounceCount()
Specified by:
getAnnounceCount in interface TRTrackerServerTorrentStats

addScrape

protected void addScrape()

getScrapeCount

public long getScrapeCount()
Specified by:
getScrapeCount in interface TRTrackerServerTorrentStats

addCompleted

protected void addCompleted()

getCompletedCount

public long getCompletedCount()
Specified by:
getCompletedCount in interface TRTrackerServerTorrentStats

getUploaded

public long getUploaded()
Specified by:
getUploaded in interface TRTrackerServerTorrentStats

getDownloaded

public long getDownloaded()
Specified by:
getDownloaded in interface TRTrackerServerTorrentStats

getBiasedUploaded

public long getBiasedUploaded()
Specified by:
getBiasedUploaded in interface TRTrackerServerTorrentStats

getBiasedDownloaded

public long getBiasedDownloaded()
Specified by:
getBiasedDownloaded in interface TRTrackerServerTorrentStats

getAmountLeft

public long getAmountLeft()
Specified by:
getAmountLeft in interface TRTrackerServerTorrentStats

addXferStats

protected void addXferStats(int in,
                            int out)

getBytesIn

public long getBytesIn()
Specified by:
getBytesIn in interface TRTrackerServerTorrentStats

getBytesOut

public long getBytesOut()
Specified by:
getBytesOut in interface TRTrackerServerTorrentStats

getSeedCount

public int getSeedCount()
Specified by:
getSeedCount in interface TRTrackerServerTorrentStats

getLeecherCount

public int getLeecherCount()
Specified by:
getLeecherCount in interface TRTrackerServerTorrentStats

getQueuedCount

public int getQueuedCount()
Specified by:
getQueuedCount in interface TRTrackerServerTorrentStats

getBadNATPeerCount

public int getBadNATPeerCount()
Specified by:
getBadNATPeerCount in interface TRTrackerServerTorrentStats

getString

public String getString()
Specified by:
getString in interface TRTrackerServerTorrentStats