com.aelitis.azureus.core.speedmanager
Class SpeedLimitHandler

java.lang.Object
  extended by com.aelitis.azureus.core.speedmanager.SpeedLimitHandler
All Implemented Interfaces:
LongTermStatsListener

public class SpeedLimitHandler
extends Object
implements LongTermStatsListener


Method Summary
 void addDownloadsToProfile(String name, List<byte[]> hashes)
           
 void deleteProfile(String name)
           
 void dump(IndentWriter iw)
           
 List<String> getCurrent()
           
 List<String> getProfile(String name)
           
 List<String> getProfileNames()
           
 List<String> getProfilesForDownload(byte[] hash)
           
 List<String> getProfileSupport(String name, boolean use_hashes)
           
 List<String> getSchedule()
           
static SpeedLimitHandler getSingleton(AzureusCore core)
           
 boolean hasAnyProfiles()
           
 List<String> loadProfile(String name)
           
 void removeDownloadsFromProfile(String name, List<byte[]> hashes)
           
 List<String> reset()
           
 List<String> saveProfile(String name)
           
 List<String> setSchedule(List<String> lines)
           
 void updated(LongTermStats stats)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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)