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

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

public class TRTrackerServerStatsImpl
extends Object
implements TRTrackerServerStats


Constructor Summary
protected TRTrackerServerStatsImpl(TRTrackerServerImpl _server)
           
 
Method Summary
 long getAnnounceCount()
           
 long getAnnounceTime()
           
 long getBytesIn()
           
 long getBytesOut()
           
 long getScrapeCount()
           
 long getScrapeTime()
           
 int getTorrentCount()
           
protected  void update(int request_type, int in, int out)
           
protected  void updateTime(int request_type, long time)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TRTrackerServerStatsImpl

protected TRTrackerServerStatsImpl(TRTrackerServerImpl _server)
Method Detail

getTorrentCount

public int getTorrentCount()
Specified by:
getTorrentCount in interface TRTrackerServerStats

getBytesIn

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

getBytesOut

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

update

protected void update(int request_type,
                      int in,
                      int out)

updateTime

protected void updateTime(int request_type,
                          long time)

getAnnounceCount

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

getScrapeCount

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

getAnnounceTime

public long getAnnounceTime()
Specified by:
getAnnounceTime in interface TRTrackerServerStats

getScrapeTime

public long getScrapeTime()
Specified by:
getScrapeTime in interface TRTrackerServerStats