Class DownloadManagerRateController
java.lang.Object
com.biglybt.core.download.impl.DownloadManagerRateController
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static double(package private) static Coreprivate static final int(package private) static final AsyncDispatcher(package private) static boolean(package private) static booleanprivate static doubleprivate static doubleprivate static doubleprivate static doubleprivate static longprivate static intprivate static long(package private) static final LimitedRateGroupprivate static final intprivate static final intprivate static final intprivate static long(package private) static final Map<PEPeerManager, DownloadManagerRateController.PMState> (package private) static longprivate static final intprivate static int(package private) static int(package private) static SpeedManagerprivate static intprivate static int(package private) static TimerEventPeriodicprivate static final intprivate static final intprivate static final intprivate static int -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
core
-
speed_manager
-
pm_map
-
timer
-
dispatcher
-
enable
static boolean enable -
enable_limit_handling
static boolean enable_limit_handling -
slack_bytes_per_sec
static int slack_bytes_per_sec -
rate_limit
static volatile long rate_limit -
limiter
-
TIMER_MILLIS
private static final int TIMER_MILLIS- See Also:
-
WAIT_AFTER_CHOKE_PERIOD
private static final int WAIT_AFTER_CHOKE_PERIOD- See Also:
-
WAIT_AFTER_CHOKE_TICKS
private static final int WAIT_AFTER_CHOKE_TICKS- See Also:
-
DEFAULT_UP_LIMIT
private static final int DEFAULT_UP_LIMIT- See Also:
-
MAX_UP_DIFF
private static final int MAX_UP_DIFF- See Also:
-
MAX_DOWN_DIFF
private static final int MAX_DOWN_DIFF- See Also:
-
MIN_DIFF
private static final int MIN_DIFF- See Also:
-
SAMPLE_COUNT
private static final int SAMPLE_COUNT- See Also:
-
sample_num
private static int sample_num -
incomplete_samples
private static double incomplete_samples -
complete_samples
private static double complete_samples -
ticks_to_sample_start
private static int ticks_to_sample_start -
last_rate_limit
private static long last_rate_limit -
last_incomplete_average
private static double last_incomplete_average -
last_complete_average
private static double last_complete_average -
last_overall_average
private static double last_overall_average -
tick_count
private static int tick_count -
last_tick_processed
private static int last_tick_processed -
pm_last_bad_limit
private static long pm_last_bad_limit -
latest_choke
private static long latest_choke -
wait_until_tick
private static int wait_until_tick
-
-
Constructor Details
-
DownloadManagerRateController
public DownloadManagerRateController()
-
-
Method Details
-
getString
-
addPeerManager
-
removePeerManager
-
update
static void update()
-