|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.aelitis.azureus.core.speedmanager.impl.v2.SpeedManagerAlgorithmProviderV2
public class SpeedManagerAlgorithmProviderV2
Field Summary | |
---|---|
static String |
SETTING_DATA_SOURCE_INPUT
|
static String |
SETTING_DHT_BAD_SET_POINT
|
static String |
SETTING_DHT_BAD_TOLERANCE
|
static String |
SETTING_DHT_GOOD_SET_POINT
|
static String |
SETTING_DHT_GOOD_TOLERANCE
|
static String |
SETTING_DOWNLOAD_LIMIT_ESTIMATE_TYPE_FROM_UI
|
static String |
SETTING_DOWNLOAD_MAX_LIMIT
|
static String |
SETTING_INTERVALS_BETWEEN_ADJUST
|
static String |
SETTING_UPLOAD_LIMIT_ESTIMATE_TYPE_FROM_UI
|
static String |
SETTING_UPLOAD_MAX_LIMIT
|
static String |
SETTING_V2_BETA_ENABLED
|
static String |
SETTING_WAIT_AFTER_ADJUST
|
Fields inherited from interface com.aelitis.azureus.core.speedmanager.impl.SpeedManagerAlgorithmProvider |
---|
UPDATE_PERIOD_MILLIS |
Constructor Summary | |
---|---|
SpeedManagerAlgorithmProviderV2(SpeedManagerAlgorithmProviderAdapter _adapter)
|
Method Summary | |
---|---|
void |
calculate(SpeedManagerPingSource[] sources)
Called whenever a new set of ping values is available for processing |
void |
destroy()
|
boolean |
getAdjustsDownloadLimits()
Indicates whether or not the provider is adjusting download as well as upload limits |
int |
getCurrentChokeSpeed()
Returns the current view of when choking occurs |
int |
getCurrentPingMillis()
|
int |
getIdlePingMillis()
Various getters for interesting info shown in stats view |
int |
getMaxPingMillis()
|
int |
getMaxUploadSpeed()
|
protected void |
log(String str)
|
void |
pingSourceFailed(SpeedManagerPingSource source)
Ping source has failed |
void |
pingSourceFound(SpeedManagerPingSource source,
boolean is_replacement)
Called when a new source of ping times has been found |
void |
reset()
Reset any state to start of day values |
void |
updateStats()
Called periodically (see period above) to allow stats to be updated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SETTING_DOWNLOAD_MAX_LIMIT
public static final String SETTING_UPLOAD_MAX_LIMIT
public static final String SETTING_UPLOAD_LIMIT_ESTIMATE_TYPE_FROM_UI
public static final String SETTING_DOWNLOAD_LIMIT_ESTIMATE_TYPE_FROM_UI
public static final String SETTING_DATA_SOURCE_INPUT
public static final String SETTING_DHT_GOOD_SET_POINT
public static final String SETTING_DHT_GOOD_TOLERANCE
public static final String SETTING_DHT_BAD_SET_POINT
public static final String SETTING_DHT_BAD_TOLERANCE
public static final String SETTING_WAIT_AFTER_ADJUST
public static final String SETTING_INTERVALS_BETWEEN_ADJUST
public static final String SETTING_V2_BETA_ENABLED
Constructor Detail |
---|
public SpeedManagerAlgorithmProviderV2(SpeedManagerAlgorithmProviderAdapter _adapter)
Method Detail |
---|
public void destroy()
destroy
in interface SpeedManagerAlgorithmProvider
public void reset()
SpeedManagerAlgorithmProvider
reset
in interface SpeedManagerAlgorithmProvider
public void updateStats()
SpeedManagerAlgorithmProvider
updateStats
in interface SpeedManagerAlgorithmProvider
public void pingSourceFound(SpeedManagerPingSource source, boolean is_replacement)
SpeedManagerAlgorithmProvider
pingSourceFound
in interface SpeedManagerAlgorithmProvider
is_replacement
- One of the initial sources or a replacement for a failed onepublic void pingSourceFailed(SpeedManagerPingSource source)
SpeedManagerAlgorithmProvider
pingSourceFailed
in interface SpeedManagerAlgorithmProvider
public void calculate(SpeedManagerPingSource[] sources)
SpeedManagerAlgorithmProvider
calculate
in interface SpeedManagerAlgorithmProvider
public int getIdlePingMillis()
SpeedManagerAlgorithmProvider
getIdlePingMillis
in interface SpeedManagerAlgorithmProvider
public int getCurrentPingMillis()
getCurrentPingMillis
in interface SpeedManagerAlgorithmProvider
public int getMaxPingMillis()
getMaxPingMillis
in interface SpeedManagerAlgorithmProvider
public int getCurrentChokeSpeed()
SpeedManagerAlgorithmProvider
getCurrentChokeSpeed
in interface SpeedManagerAlgorithmProvider
public int getMaxUploadSpeed()
getMaxUploadSpeed
in interface SpeedManagerAlgorithmProvider
public boolean getAdjustsDownloadLimits()
SpeedManagerAlgorithmProvider
getAdjustsDownloadLimits
in interface SpeedManagerAlgorithmProvider
protected void log(String str)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |