com.aelitis.azureus.core.download
Class EnhancedDownloadManager.progressiveStatsCommon

java.lang.Object
  extended by com.aelitis.azureus.core.download.EnhancedDownloadManager.progressiveStats
      extended by com.aelitis.azureus.core.download.EnhancedDownloadManager.progressiveStatsCommon
All Implemented Interfaces:
java.lang.Cloneable
Enclosing class:
EnhancedDownloadManager

protected class EnhancedDownloadManager.progressiveStatsCommon
extends EnhancedDownloadManager.progressiveStats


Constructor Summary
protected EnhancedDownloadManager.progressiveStatsCommon(DownloadManager _dm, EnhancedDownloadManagerFile _primary_file)
           
 
Method Summary
 long getBufferBytes()
           
protected  long getCurrentProviderPosition(boolean absolute)
           
protected  long getDownloadBytesPerSecond()
           
protected  long getETA()
           
protected  EnhancedDownloadManagerFile getFile()
           
protected  long getInitialProviderPosition()
           
protected  long getProviderLifeSecs()
           
protected  long getSecondsToDownload()
           
 long getSecondsToWatch()
           
protected  long getStreamBytesPerSecondMax()
           
protected  long getStreamBytesPerSecondMin()
           
protected  java.lang.String getString()
           
protected  boolean isProviderActive()
           
protected  void update(int tick_count)
           
protected  void updateCurrentProvider(PieceRTAProvider provider)
           
 
Methods inherited from class com.aelitis.azureus.core.download.EnhancedDownloadManager.progressiveStats
formatBytes, formatSpeed, getCopy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnhancedDownloadManager.progressiveStatsCommon

protected EnhancedDownloadManager.progressiveStatsCommon(DownloadManager _dm,
                                                         EnhancedDownloadManagerFile _primary_file)
Method Detail

updateCurrentProvider

protected void updateCurrentProvider(PieceRTAProvider provider)

isProviderActive

protected boolean isProviderActive()
Specified by:
isProviderActive in class EnhancedDownloadManager.progressiveStats

getInitialProviderPosition

protected long getInitialProviderPosition()

getCurrentProviderPosition

protected long getCurrentProviderPosition(boolean absolute)
Specified by:
getCurrentProviderPosition in class EnhancedDownloadManager.progressiveStats

getProviderLifeSecs

protected long getProviderLifeSecs()

update

protected void update(int tick_count)
Specified by:
update in class EnhancedDownloadManager.progressiveStats

getETA

protected long getETA()
Specified by:
getETA in class EnhancedDownloadManager.progressiveStats

getStreamBytesPerSecondMax

protected long getStreamBytesPerSecondMax()
Specified by:
getStreamBytesPerSecondMax in class EnhancedDownloadManager.progressiveStats

getStreamBytesPerSecondMin

protected long getStreamBytesPerSecondMin()
Specified by:
getStreamBytesPerSecondMin in class EnhancedDownloadManager.progressiveStats

getBufferBytes

public long getBufferBytes()
Specified by:
getBufferBytes in class EnhancedDownloadManager.progressiveStats

getFile

protected EnhancedDownloadManagerFile getFile()
Specified by:
getFile in class EnhancedDownloadManager.progressiveStats

getDownloadBytesPerSecond

protected long getDownloadBytesPerSecond()
Specified by:
getDownloadBytesPerSecond in class EnhancedDownloadManager.progressiveStats

getSecondsToDownload

protected long getSecondsToDownload()
Specified by:
getSecondsToDownload in class EnhancedDownloadManager.progressiveStats

getSecondsToWatch

public long getSecondsToWatch()
Specified by:
getSecondsToWatch in class EnhancedDownloadManager.progressiveStats

getString

protected java.lang.String getString()