FileDocCategorySizeDatePackage
SpeedManagerAlgorithmProvider.javaAPI DocAzureus 3.0.3.42539Wed Jul 25 09:03:46 BST 2007com.aelitis.azureus.core.speedmanager.impl

SpeedManagerAlgorithmProvider

public interface SpeedManagerAlgorithmProvider

Fields Summary
public static final int
UPDATE_PERIOD_MILLIS
Constructors Summary
Methods Summary
public voidcalculate(com.aelitis.azureus.core.speedmanager.SpeedManagerPingSource[] sources)
Called whenever a new set of ping values is available for processing

param
sources

public voiddestroy()

public booleangetAdjustsDownloadLimits()
Indicates whether or not the provider is adjusting download as well as upload limits

return

public intgetCurrentChokeSpeed()
Returns the current view of when choking occurs

return
speed in bytes/sec

public intgetCurrentPingMillis()

public intgetIdlePingMillis()
Various getters for interesting info shown in stats view

return

public intgetMaxPingMillis()

public intgetMaxUploadSpeed()

public voidpingSourceFailed(com.aelitis.azureus.core.speedmanager.SpeedManagerPingSource source)
Ping source has failed

param
source

public voidpingSourceFound(com.aelitis.azureus.core.speedmanager.SpeedManagerPingSource source, boolean is_replacement)
Called when a new source of ping times has been found

param
source
param
is_replacement One of the initial sources or a replacement for a failed one

public voidreset()
Reset any state to start of day values

public voidupdateStats()
Called periodically (see period above) to allow stats to be updated.