FileDocCategorySizeDatePackage
RPTrackerTorrent.javaAPI DocAzureus 3.0.3.46617Thu Feb 09 19:43:22 GMT 2006org.gudy.azureus2.pluginsimpl.remote.tracker

RPTrackerTorrent

public class RPTrackerTorrent extends RPObject implements TrackerTorrent
author
parg

Fields Summary
protected transient TrackerTorrent
delegate
public org.gudy.azureus2.pluginsimpl.remote.torrent.RPTorrent
torrent
public int
status
public long
total_uploaded
public long
total_downloaded
public long
average_uploaded
public long
average_downloaded
public long
total_left
public long
completed_count
public long
total_bytes_in
public long
average_bytes_in
public long
total_bytes_out
public long
average_bytes_out
public long
scrape_count
public long
average_scrape_count
public long
announce_count
public long
average_announce_count
public int
seed_count
public int
leecher_count
public int
bad_NAT_count
Constructors Summary
protected RPTrackerTorrent(TrackerTorrent _delegate)

		super( _delegate );
		
		if ( delegate.getTorrent() != null ){
			
			torrent = (RPTorrent)_lookupLocal( delegate.getTorrent());
		
			if ( torrent == null ){
				
				torrent = RPTorrent.create( delegate.getTorrent());
			}
		}
	
Methods Summary
public RPReply_process(RPRequest request)

		String		method 	= request.getMethod();
		// Object[]	params	= request.getParams();			
		
		throw( new RPException( "Unknown method: " + method ));
	
protected void_setDelegate(java.lang.Object _delegate)

		delegate = (TrackerTorrent)_delegate;
		
		status					= delegate.getStatus();
		total_uploaded			= delegate.getTotalUploaded();
		total_downloaded		= delegate.getTotalDownloaded();
		average_uploaded		= delegate.getAverageUploaded();
		average_downloaded		= delegate.getAverageDownloaded();
		total_left				= delegate.getTotalLeft();
		completed_count			= delegate.getCompletedCount();
		total_bytes_in			= delegate.getTotalBytesIn();
		average_bytes_in		= delegate.getAverageBytesIn();
		total_bytes_out			= delegate.getTotalBytesOut();
		average_bytes_out		= delegate.getAverageBytesOut();
		scrape_count			= delegate.getScrapeCount();
		average_scrape_count	= delegate.getAverageScrapeCount();
		announce_count			= delegate.getAnnounceCount();
		average_announce_count	= delegate.getAverageAnnounceCount();
		seed_count				= delegate.getSeedCount();
		leecher_count			= delegate.getLeecherCount();
		bad_NAT_count			= delegate.getBadNATCount();
	
public java.lang.Object_setLocal()

		Object res = _fixupLocal();
		
		if ( torrent != null ){
			
			torrent._setLocal();
		}
		
		return( res );
	
public void_setRemote(RPRequestDispatcher dispatcher)

		super._setRemote( dispatcher );
		
		if ( torrent != null ){
			
			torrent._setRemote( dispatcher );
		}
	
public voidaddListener(TrackerTorrentListener listener)

		notSupported();
	
public voidaddRemovalListener(TrackerTorrentWillBeRemovedListener listener)

		notSupported();
	
public booleancanBeRemoved()

		notSupported();
		
		return( false );	
	
public static org.gudy.azureus2.pluginsimpl.remote.tracker.RPTrackerTorrentcreate(TrackerTorrent _delegate)

		RPTrackerTorrent	res =(RPTrackerTorrent)_lookupLocal( _delegate );
		
		if ( res == null ){
			
			res = new RPTrackerTorrent( _delegate );
		}
		
		return( res );
	
public voiddisableReplyCaching()

		notSupported();
	
public longgetAnnounceCount()

		return( announce_count );	
	
public longgetAverageAnnounceCount()

		return( average_announce_count );
	
public longgetAverageBytesIn()

		return( average_bytes_in );	
	
public longgetAverageBytesOut()

		return( average_bytes_out );	
	
public longgetAverageDownloaded()

		return( average_downloaded );	
	
public longgetAverageScrapeCount()

		return( average_scrape_count );
	
public longgetAverageUploaded()

		return( average_uploaded );
	
public intgetBadNATCount()

		return( bad_NAT_count );
	
public longgetCompletedCount()

		return( completed_count );	
	
public longgetDateAdded()

		notSupported();
		
		return( 0 );		
	
public intgetLeecherCount()

		return( leecher_count);	
	
public TrackerPeer[]getPeers()

		notSupported();
		
		return( null );	
	
public longgetScrapeCount()

		return( scrape_count );	
	
public intgetSeedCount()

		return( seed_count );	
	
public intgetStatus()

		return( status );	
	
public TorrentgetTorrent()

		return( torrent );	
	
public longgetTotalBytesIn()

		return( total_bytes_in );	
	
public longgetTotalBytesOut()

		return( total_bytes_out );	
	
public longgetTotalDownloaded()

		return( total_downloaded );	
	
public longgetTotalLeft()

		return( total_left );	
	
public longgetTotalUploaded()

		return( total_uploaded );	
	
public booleanisPassive()

		notSupported();
		
		return( false );
	
public voidremove()

		notSupported();
		
	
public voidremoveListener(TrackerTorrentListener listener)

		notSupported();
	
public voidremoveRemovalListener(TrackerTorrentWillBeRemovedListener listener)

		notSupported();
	
public voidstart()

		notSupported();
	
public voidstop()

		notSupported();