FileDocCategorySizeDatePackage
RPDownloadStats.javaAPI DocAzureus 3.0.3.45006Tue Dec 26 14:01:30 GMT 2006org.gudy.azureus2.pluginsimpl.remote.download

RPDownloadStats

public class RPDownloadStats extends RPObject implements DownloadStats
author
parg

Fields Summary
protected transient DownloadStats
delegate
public long
downloaded
public long
uploaded
public int
completed
public int
downloadCompletedLive
public int
downloadCompletedStored
public String
status
public String
status_localised
public long
upload_average
public long
download_average
public String
eta
public int
share_ratio
public float
availability
public int
health
Constructors Summary
protected RPDownloadStats(DownloadStats _delegate)

		super( _delegate );
	
Methods Summary
public RPReply_process(RPRequest request)

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

		delegate = (DownloadStats)_delegate;
		
		downloaded					= delegate.getDownloaded();
		uploaded					= delegate.getUploaded();
		completed					= delegate.getCompleted();
		downloadCompletedLive		= delegate.getDownloadCompleted(true);
		downloadCompletedStored		= delegate.getDownloadCompleted(false);
		status						= delegate.getStatus();
		status_localised			= delegate.getStatus(true);
		upload_average				= delegate.getUploadAverage();
		download_average			= delegate.getDownloadAverage();
		eta							= delegate.getETA();
		share_ratio					= delegate.getShareRatio();
		availability				= delegate.getAvailability();
		health						= delegate.getHealth();
	
public java.lang.Object_setLocal()

		return( _fixupLocal());
	
public static org.gudy.azureus2.pluginsimpl.remote.download.RPDownloadStatscreate(DownloadStats _delegate)

		RPDownloadStats	res =(RPDownloadStats)_lookupLocal( _delegate );
		
		if ( res == null ){
			
			res = new RPDownloadStats( _delegate );
		}
		
		return( res );
	
public floatgetAvailability()

		return( availability );
	
public intgetCheckingDoneInThousandNotation()

		notSupported();
		
		return( 0 );
	
public intgetCompleted()

		return( completed );
	
public longgetDiscarded()

		notSupported();
		
		return( 0 );
	
public longgetDownloadAverage()

		return( download_average );
	
public intgetDownloadCompleted(boolean bLive)

		return( bLive ? downloadCompletedLive : downloadCompletedStored );
	
public java.lang.StringgetDownloadDirectory()

		notSupported();
		
		return( null );
	
public longgetDownloaded()

		return( downloaded );
	
public java.lang.StringgetETA()

		return( eta );
	
public java.lang.StringgetElapsedTime()

		notSupported();
		
		return( null );
	
public longgetHashFails()

		notSupported();
		
		return( 0 );
	
public intgetHealth()

		return( health );
	
public longgetRemaining()

		notSupported();
		
		return( 0 );
	
public longgetSecondsDownloading()

		 notSupported();
		 return ( 0 );
  
public longgetSecondsOnlySeeding()

		 notSupported();
		 return ( 0 );
  
public longgetSecondsSinceLastDownload()

		notSupported();
		return ( 0 );	
	
public longgetSecondsSinceLastUpload()

		notSupported();
		return ( 0 );	
	
public intgetShareRatio()

		return( share_ratio );
	
public java.lang.StringgetStatus()

		return( status );
	
public java.lang.StringgetStatus(boolean localised)

		return (localised)? status_localised : status;
	
public java.lang.StringgetTargetFileOrDir()

		notSupported();
		
		return( null );
	
public longgetTimeStarted()

		 notSupported();
		 return ( 0 );
	
public longgetTimeStartedSeeding()

		 notSupported();
		 return ( 0 );
  
public longgetTotalAverage()

		notSupported();
		
		return( 0 );
	
public java.lang.StringgetTrackerStatus()

		notSupported();
		
		return( null );
	
public longgetUploadAverage()

		return( upload_average );
	
public longgetUploaded()

		return( uploaded );