FileDocCategorySizeDatePackage
TRTrackerServerStatsImpl.javaAPI DocAzureus 3.0.3.41883Fri Aug 31 15:48:20 BST 2007org.gudy.azureus2.core3.tracker.server.impl

TRTrackerServerStatsImpl

public class TRTrackerServerStatsImpl extends Object implements TRTrackerServerStats
author
parg

Fields Summary
private TRTrackerServerImpl
server
private long
announces
private long
scrapes
private long
bytes_in
private long
bytes_out
Constructors Summary
protected TRTrackerServerStatsImpl(TRTrackerServerImpl _server)

		server	= _server;
	
Methods Summary
public longgetAnnounceCount()

		return( announces );
	
public longgetBytesIn()

		return( bytes_in );
	
public longgetBytesOut()

		return( bytes_out );
	
public longgetScrapeCount()

		return( scrapes );
	
public intgetTorrentCount()

		return( server.getTorrentCount());
	
protected voidupdate(int request_type, int in, int out)

		bytes_in		+= in;
		bytes_out		+= out;
		
		if ( request_type == TRTrackerServerRequest.RT_ANNOUNCE || request_type == TRTrackerServerRequest.RT_QUERY ){
			
			announces++;
		}else{
			
			scrapes++;
		}