Package com.biglybt.core.download
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 long
private Average
private long
private long
private PieceRTAProvider
private String
private Average
private long
private EnhancedDownloadManagerFile
private long
private long
private long
private long
private long
private Average
private long
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
progressiveStatsCommon
(DownloadManager _dm, EnhancedDownloadManagerFile _primary_file) -
Method Summary
Modifier and TypeMethodDescriptionlong
protected long
getCurrentProviderPosition
(boolean absolute) protected long
protected long
getETA()
protected EnhancedDownloadManagerFile
getFile()
protected long
protected long
protected long
long
protected long
protected long
protected String
protected boolean
protected void
update
(int tick_count) protected void
updateCurrentProvider
(PieceRTAProvider provider) Methods inherited from class com.biglybt.core.download.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:
isProviderActive
in classEnhancedDownloadManager.progressiveStats
-
getInitialProviderPosition
protected long getInitialProviderPosition() -
getCurrentProviderPosition
protected long getCurrentProviderPosition(boolean absolute) - Specified by:
getCurrentProviderPosition
in classEnhancedDownloadManager.progressiveStats
-
getProviderLifeSecs
protected long getProviderLifeSecs() -
update
protected void update(int tick_count) - Specified by:
update
in classEnhancedDownloadManager.progressiveStats
-
getETA
protected long getETA()- Specified by:
getETA
in classEnhancedDownloadManager.progressiveStats
-
getStreamBytesPerSecondMax
protected long getStreamBytesPerSecondMax()- Specified by:
getStreamBytesPerSecondMax
in classEnhancedDownloadManager.progressiveStats
-
getStreamBytesPerSecondMin
protected long getStreamBytesPerSecondMin()- Specified by:
getStreamBytesPerSecondMin
in classEnhancedDownloadManager.progressiveStats
-
getBufferBytes
public long getBufferBytes()- Specified by:
getBufferBytes
in classEnhancedDownloadManager.progressiveStats
-
getFile
- Specified by:
getFile
in classEnhancedDownloadManager.progressiveStats
-
getDownloadBytesPerSecond
protected long getDownloadBytesPerSecond()- Specified by:
getDownloadBytesPerSecond
in classEnhancedDownloadManager.progressiveStats
-
getSecondsToDownload
protected long getSecondsToDownload()- Specified by:
getSecondsToDownload
in classEnhancedDownloadManager.progressiveStats
-
getSecondsToWatch
public long getSecondsToWatch()- Specified by:
getSecondsToWatch
in classEnhancedDownloadManager.progressiveStats
-
getString
-