com.aelitis.azureus.core.speedmanager
Class SpeedLimitHandler
java.lang.Object
com.aelitis.azureus.core.speedmanager.SpeedLimitHandler
- All Implemented Interfaces:
- LongTermStatsListener
public class SpeedLimitHandler
- extends Object
- implements LongTermStatsListener
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getSingleton
public static SpeedLimitHandler getSingleton(AzureusCore core)
hasAnyProfiles
public boolean hasAnyProfiles()
reset
public List<String> reset()
getCurrent
public List<String> getCurrent()
getProfileNames
public List<String> getProfileNames()
loadProfile
public List<String> loadProfile(String name)
getProfile
public List<String> getProfile(String name)
getProfileSupport
public List<String> getProfileSupport(String name,
boolean use_hashes)
getProfilesForDownload
public List<String> getProfilesForDownload(byte[] hash)
addDownloadsToProfile
public void addDownloadsToProfile(String name,
List<byte[]> hashes)
removeDownloadsFromProfile
public void removeDownloadsFromProfile(String name,
List<byte[]> hashes)
deleteProfile
public void deleteProfile(String name)
saveProfile
public List<String> saveProfile(String name)
getSchedule
public List<String> getSchedule()
setSchedule
public List<String> setSchedule(List<String> lines)
updated
public void updated(LongTermStats stats)
- Specified by:
updated
in interface LongTermStatsListener
dump
public void dump(IndentWriter iw)