Fields Summary |
---|
private com.aelitis.azureus.core.speedmanager.impl.SpeedManagerAlgorithmProviderAdapter | adapter |
private com.aelitis.azureus.core.speedmanager.impl.SpeedManagerAlgorithmProvider | strategy |
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 |
Methods Summary |
---|
public void | calculate(com.aelitis.azureus.core.speedmanager.SpeedManagerPingSource[] sources)
String str = "";
for (int i=0;i<sources.length;i++){
str += (i==0?"":",") + sources[i].getAddress() + " -> " + sources[i].getPingTime();
}
log( "ping-data: " + str );
strategy.calculate(sources);
|
public void | destroy()
strategy.destroy();
|
public boolean | getAdjustsDownloadLimits()
// TODO Auto-generated method stub
return false;
|
public int | getCurrentChokeSpeed()
return strategy.getCurrentChokeSpeed();
|
public int | getCurrentPingMillis()
return strategy.getCurrentPingMillis();
|
public int | getIdlePingMillis()
return strategy.getIdlePingMillis();
|
public int | getMaxPingMillis()
return strategy.getMaxPingMillis();
|
public int | getMaxUploadSpeed()
return strategy.getMaxUploadSpeed();
|
protected void | log(java.lang.String str)
SpeedManagerLogger.log( str );
|
public void | pingSourceFailed(com.aelitis.azureus.core.speedmanager.SpeedManagerPingSource source)
log( "Lost ping source: " + source.getAddress());
strategy.pingSourceFailed(source);
|
public void | pingSourceFound(com.aelitis.azureus.core.speedmanager.SpeedManagerPingSource source, boolean is_replacement)
log( "Found ping source: " + source.getAddress());
strategy.pingSourceFound(source,is_replacement);
|
public void | reset()
strategy.reset();
|
public void | updateStats()
strategy.updateStats();
|