com.aelitis.azureus.core.speedmanager
Class SpeedLimitHandler
java.lang.Object
com.aelitis.azureus.core.speedmanager.SpeedLimitHandler
- All Implemented Interfaces:
- LongTermStatsListener
public class SpeedLimitHandler
- extends java.lang.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 java.util.List<java.lang.String> reset()
getCurrent
public java.util.List<java.lang.String> getCurrent()
getProfileNames
public java.util.List<java.lang.String> getProfileNames()
loadProfile
public java.util.List<java.lang.String> loadProfile(java.lang.String name)
getProfile
public java.util.List<java.lang.String> getProfile(java.lang.String name)
getProfileSupport
public java.util.List<java.lang.String> getProfileSupport(java.lang.String name,
boolean use_hashes)
getProfilesForDownload
public java.util.List<java.lang.String> getProfilesForDownload(byte[] hash)
addDownloadsToProfile
public void addDownloadsToProfile(java.lang.String name,
java.util.List<byte[]> hashes)
removeDownloadsFromProfile
public void removeDownloadsFromProfile(java.lang.String name,
java.util.List<byte[]> hashes)
deleteProfile
public void deleteProfile(java.lang.String name)
saveProfile
public java.util.List<java.lang.String> saveProfile(java.lang.String name)
getSchedule
public java.util.List<java.lang.String> getSchedule()
setSchedule
public java.util.List<java.lang.String> setSchedule(java.util.List<java.lang.String> lines)
updated
public void updated(LongTermStats stats)
- Specified by:
updated
in interface LongTermStatsListener
dump
public void dump(IndentWriter iw)