Class SpeedManagerImpl.nullProvider
java.lang.Object
com.biglybt.core.speedmanager.impl.SpeedManagerImpl.nullProvider
- All Implemented Interfaces:
SpeedManagerAlgorithmProvider
- Enclosing class:
SpeedManagerImpl
protected static class SpeedManagerImpl.nullProvider
extends Object
implements SpeedManagerAlgorithmProvider
-
Field Summary
Fields inherited from interface com.biglybt.core.speedmanager.impl.SpeedManagerAlgorithmProvider
UPDATE_PERIOD_MILLIS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
calculate
(SpeedManagerPingSource[] sources) Called whenever a new set of ping values is available for processingvoid
destroy()
boolean
Indicates whether or not the provider is adjusting download as well as upload limitsint
Returns the current view of when choking occursint
int
Various getters for interesting info shown in stats viewint
int
void
Ping source has failedvoid
pingSourceFound
(SpeedManagerPingSource source, boolean is_replacement) Called when a new source of ping times has been foundvoid
reset()
Reset any state to start of day valuesvoid
Called periodically (see period above) to allow stats to be updated.
-
Constructor Details
-
nullProvider
protected nullProvider()
-
-
Method Details
-
reset
public void reset()Description copied from interface:SpeedManagerAlgorithmProvider
Reset any state to start of day values- Specified by:
reset
in interfaceSpeedManagerAlgorithmProvider
-
destroy
public void destroy()- Specified by:
destroy
in interfaceSpeedManagerAlgorithmProvider
-
updateStats
public void updateStats()Description copied from interface:SpeedManagerAlgorithmProvider
Called periodically (see period above) to allow stats to be updated.- Specified by:
updateStats
in interfaceSpeedManagerAlgorithmProvider
-
pingSourceFound
Description copied from interface:SpeedManagerAlgorithmProvider
Called when a new source of ping times has been found- Specified by:
pingSourceFound
in interfaceSpeedManagerAlgorithmProvider
- Parameters:
source
-is_replacement
- One of the initial sources or a replacement for a failed one
-
pingSourceFailed
Description copied from interface:SpeedManagerAlgorithmProvider
Ping source has failed- Specified by:
pingSourceFailed
in interfaceSpeedManagerAlgorithmProvider
- Parameters:
source
-
-
calculate
Description copied from interface:SpeedManagerAlgorithmProvider
Called whenever a new set of ping values is available for processing- Specified by:
calculate
in interfaceSpeedManagerAlgorithmProvider
- Parameters:
sources
-
-
getIdlePingMillis
public int getIdlePingMillis()Description copied from interface:SpeedManagerAlgorithmProvider
Various getters for interesting info shown in stats view- Specified by:
getIdlePingMillis
in interfaceSpeedManagerAlgorithmProvider
- Returns:
-
getCurrentPingMillis
public int getCurrentPingMillis()- Specified by:
getCurrentPingMillis
in interfaceSpeedManagerAlgorithmProvider
-
getMaxPingMillis
public int getMaxPingMillis()- Specified by:
getMaxPingMillis
in interfaceSpeedManagerAlgorithmProvider
-
getCurrentChokeSpeed
public int getCurrentChokeSpeed()Description copied from interface:SpeedManagerAlgorithmProvider
Returns the current view of when choking occurs- Specified by:
getCurrentChokeSpeed
in interfaceSpeedManagerAlgorithmProvider
- Returns:
- speed in bytes/sec
-
getMaxUploadSpeed
public int getMaxUploadSpeed()- Specified by:
getMaxUploadSpeed
in interfaceSpeedManagerAlgorithmProvider
-
getAdjustsDownloadLimits
public boolean getAdjustsDownloadLimits()Description copied from interface:SpeedManagerAlgorithmProvider
Indicates whether or not the provider is adjusting download as well as upload limits- Specified by:
getAdjustsDownloadLimits
in interfaceSpeedManagerAlgorithmProvider
- Returns:
-