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 java.lang.Object
implements LongTermStatsListener


Method Summary
 void addDownloadsToProfile(java.lang.String name, java.util.List<byte[]> hashes)
           
 void deleteProfile(java.lang.String name)
           
 void dump(IndentWriter iw)
           
 java.util.List<java.lang.String> getCurrent()
           
 java.util.List<java.lang.String> getProfile(java.lang.String name)
           
 java.util.List<java.lang.String> getProfileNames()
           
 java.util.List<java.lang.String> getProfilesForDownload(byte[] hash)
           
 java.util.List<java.lang.String> getProfileSupport(java.lang.String name, boolean use_hashes)
           
 java.util.List<java.lang.String> getSchedule()
           
static SpeedLimitHandler getSingleton(AzureusCore core)
           
 boolean hasAnyProfiles()
           
 java.util.List<java.lang.String> loadProfile(java.lang.String name)
           
 void removeDownloadsFromProfile(java.lang.String name, java.util.List<byte[]> hashes)
           
 java.util.List<java.lang.String> reset()
           
 java.util.List<java.lang.String> saveProfile(java.lang.String name)
           
 java.util.List<java.lang.String> setSchedule(java.util.List<java.lang.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 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)