Class EnhancedDownloadManager.progressiveStatsCommon
java.lang.Object
com.biglybt.core.download.EnhancedDownloadManager.progressiveStats
com.biglybt.core.download.EnhancedDownloadManager.progressiveStatsCommon
- All Implemented Interfaces:
Cloneable
- Enclosing class:
EnhancedDownloadManager
protected class EnhancedDownloadManager.progressiveStatsCommon
extends EnhancedDownloadManager.progressiveStats
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate longprivate Averageprivate longprivate longprivate PieceRTAProviderprivate Stringprivate Averageprivate longprivate EnhancedDownloadManagerFileprivate longprivate longprivate longprivate longprivate longprivate Averageprivate long -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprogressiveStatsCommon(DownloadManager _dm, EnhancedDownloadManagerFile _primary_file) -
Method Summary
Modifier and TypeMethodDescriptionlongprotected longgetCurrentProviderPosition(boolean absolute) protected longprotected longgetETA()protected EnhancedDownloadManagerFilegetFile()protected longprotected longprotected longlongprotected longprotected longprotected Stringprotected booleanprotected voidupdate(int tick_count) protected voidupdateCurrentProvider(PieceRTAProvider provider) Methods inherited from class EnhancedDownloadManager.progressiveStats
formatBytes, formatSpeed, getCopy
-
Field Details
-
-
current_provider
-
current_user_agent
-
content_stream_bps_min
private long content_stream_bps_min -
content_stream_bps_max
private long content_stream_bps_max -
capped_download_rate_average
-
discard_rate_average
-
last_discard_bytes
private long last_discard_bytes -
actual_bytes_to_download
private long actual_bytes_to_download -
weighted_bytes_to_download
private long weighted_bytes_to_download -
provider_life_secs
private long provider_life_secs -
provider_initial_position
private long provider_initial_position -
provider_byte_position
private long provider_byte_position -
provider_last_byte_position
private long provider_last_byte_position -
provider_blocking_byte_position
private long provider_blocking_byte_position -
provider_speed_average
-
-
Constructor Details
-
progressiveStatsCommon
-
-
Method Details
-
updateCurrentProvider
-
isProviderActive
protected boolean isProviderActive()- Specified by:
isProviderActivein classEnhancedDownloadManager.progressiveStats
-
getInitialProviderPosition
protected long getInitialProviderPosition() -
getCurrentProviderPosition
protected long getCurrentProviderPosition(boolean absolute) - Specified by:
getCurrentProviderPositionin classEnhancedDownloadManager.progressiveStats
-
getProviderLifeSecs
protected long getProviderLifeSecs() -
update
protected void update(int tick_count) - Specified by:
updatein classEnhancedDownloadManager.progressiveStats
-
getETA
protected long getETA()- Specified by:
getETAin classEnhancedDownloadManager.progressiveStats
-
getStreamBytesPerSecondMax
protected long getStreamBytesPerSecondMax()- Specified by:
getStreamBytesPerSecondMaxin classEnhancedDownloadManager.progressiveStats
-
getStreamBytesPerSecondMin
protected long getStreamBytesPerSecondMin()- Specified by:
getStreamBytesPerSecondMinin classEnhancedDownloadManager.progressiveStats
-
getBufferBytes
public long getBufferBytes()- Specified by:
getBufferBytesin classEnhancedDownloadManager.progressiveStats
-
getFile
- Specified by:
getFilein classEnhancedDownloadManager.progressiveStats
-
getDownloadBytesPerSecond
protected long getDownloadBytesPerSecond()- Specified by:
getDownloadBytesPerSecondin classEnhancedDownloadManager.progressiveStats
-
getSecondsToDownload
protected long getSecondsToDownload()- Specified by:
getSecondsToDownloadin classEnhancedDownloadManager.progressiveStats
-
getSecondsToWatch
public long getSecondsToWatch()- Specified by:
getSecondsToWatchin classEnhancedDownloadManager.progressiveStats
-
getString
-