Package com.biglybt.core.download
Class EnhancedDownloadManager
java.lang.Object
com.biglybt.core.download.EnhancedDownloadManager
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
protected static class
protected class
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) EnhancedDownloadManager.bufferETAProvider
(package private) long
private static final int
private static final int
(package private) PiecePicker
static int
private boolean
private DownloadManagerListener
(package private) DownloadManager
private EnhancedDownloadManagerFile[]
(package private) DownloadManagerEnhancer
(package private) boolean
static final int
static final int
private boolean
static int
(package private) int
(package private) boolean
(package private) EnhancedDownloadManager.progressiveStats
static final int
static final int
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
EnhancedDownloadManager
(DownloadManagerEnhancer _enhancer, DownloadManager _download_manager) -
Method Summary
Modifier and TypeMethodDescriptionprotected EnhancedDownloadManager.progressiveStats
protected void
destroy()
long
getContiguousAvailableBytes
(int file_index, long file_start_offset, long stop_counting_after) getFiles()
byte[]
getHash()
getName()
int
boolean
long
protected EnhancedDownloadManager.progressiveStats
protected long
protected void
log
(DownloadManager dm, String str, boolean to_file) protected void
protected void
void
prepareForProgressiveMode
(boolean active) void
setExplicitProgressive
(int min_initial_buffer_secs, long min_bps, int file_index) boolean
setProgressiveMode
(boolean active) protected boolean
setProgressiveMode
(boolean active, boolean switching_progressive_downloads) protected void
setRTA
(boolean active) boolean
protected boolean
updateProgressiveStats
(int tick_count) protected boolean
updateStats
(int tick_count)
-
Field Details
-
DEFAULT_MINIMUM_INITIAL_BUFFER_SECS_FOR_ETA
public static int DEFAULT_MINIMUM_INITIAL_BUFFER_SECS_FOR_ETA -
MINIMUM_INITIAL_BUFFER_SECS
public static int MINIMUM_INITIAL_BUFFER_SECS -
REACTIVATE_PROVIDER_PERIOD
public static final int REACTIVATE_PROVIDER_PERIOD- See Also:
-
REACTIVATE_PROVIDER_PERIOD_TICKS
public static final int REACTIVATE_PROVIDER_PERIOD_TICKS- See Also:
-
LOG_PROG_STATS_PERIOD
public static final int LOG_PROG_STATS_PERIOD- See Also:
-
LOG_PROG_STATS_TICKS
public static final int LOG_PROG_STATS_TICKS- See Also:
-
content_stream_bps_min_increase_ratio
private static final int content_stream_bps_min_increase_ratio- See Also:
-
content_stream_bps_max_increase_ratio
private static final int content_stream_bps_max_increase_ratio- See Also:
-
enhancer
DownloadManagerEnhancer enhancer -
download_manager
DownloadManager download_manager -
explicit_progressive
boolean explicit_progressive -
current_piece_pickler
-
progressive_active
volatile boolean progressive_active -
content_min_delivery_bps
long content_min_delivery_bps -
minimum_initial_buffer_secs_for_eta
int minimum_initial_buffer_secs_for_eta -
buffer_provider
EnhancedDownloadManager.bufferETAProvider buffer_provider -
progressive_stats
EnhancedDownloadManager.progressiveStats progressive_stats -
marked_active
private boolean marked_active -
destroyed
private boolean destroyed -
dmListener
-
enhanced_files
-
-
Constructor Details
-
EnhancedDownloadManager
protected EnhancedDownloadManager(DownloadManagerEnhancer _enhancer, DownloadManager _download_manager)
-
-
Method Details
-
getPrimaryFileIndex
public int getPrimaryFileIndex() -
setExplicitProgressive
public void setExplicitProgressive(int min_initial_buffer_secs, long min_bps, int file_index) -
getName
-
getHash
public byte[] getHash() -
getFiles
-
getTargetSpeed
protected long getTargetSpeed() -
updateStats
protected boolean updateStats(int tick_count) -
supportsProgressiveMode
public boolean supportsProgressiveMode() -
prepareForProgressiveMode
public void prepareForProgressiveMode(boolean active) -
setProgressiveMode
public boolean setProgressiveMode(boolean active) -
setProgressiveMode
protected boolean setProgressiveMode(boolean active, boolean switching_progressive_downloads) -
getProgressiveMode
public boolean getProgressiveMode() -
getProgressivePlayETA
public long getProgressivePlayETA() -
getProgressiveStats
-
createProgressiveStats
protected EnhancedDownloadManager.progressiveStats createProgressiveStats(DownloadManager dm, EnhancedDownloadManagerFile file) -
updateProgressiveStats
protected boolean updateProgressiveStats(int tick_count) -
setRTA
protected void setRTA(boolean active) -
getContiguousAvailableBytes
public long getContiguousAvailableBytes(int file_index, long file_start_offset, long stop_counting_after) -
getDownloadManager
-
destroy
protected void destroy() -
log
-
log
-
log
-