com.aelitis.azureus.core.networkmanager.admin.impl
Class NetworkAdminSpeedTestScheduledTestImpl

java.lang.Object
  extended by com.aelitis.azureus.core.networkmanager.admin.impl.NetworkAdminSpeedTestScheduledTestImpl
All Implemented Interfaces:
NetworkAdminSpeedTestScheduledTest

public class NetworkAdminSpeedTestScheduledTestImpl
extends Object
implements NetworkAdminSpeedTestScheduledTest


Constructor Summary
protected NetworkAdminSpeedTestScheduledTestImpl(PluginInterface _plugin, NetworkAdminSpeedTesterImpl _tester)
           
 
Method Summary
 void abort()
           
 void abort(String reason)
           
 void addListener(NetworkAdminSpeedTestScheduledTestListener listener)
           
 long getMaxDownBytePerSec()
           
 long getMaxUpBytePerSec()
          These are the limits up to which the test can run, not the result of the test
 NetworkAdminSpeedTester getTester()
           
 void removeListener(NetworkAdminSpeedTestScheduledTestListener listener)
           
protected  void reportComplete()
           
protected  void reportStage(String str)
           
protected  void resetSpeedLimits()
          Restore all the downloads the state before the speed test started.
protected  void setSpeedLimits()
          Preserve all the data about the downloads while the test is running.
 boolean start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetworkAdminSpeedTestScheduledTestImpl

protected NetworkAdminSpeedTestScheduledTestImpl(PluginInterface _plugin,
                                                 NetworkAdminSpeedTesterImpl _tester)
Method Detail

getTester

public NetworkAdminSpeedTester getTester()
Specified by:
getTester in interface NetworkAdminSpeedTestScheduledTest

getMaxUpBytePerSec

public long getMaxUpBytePerSec()
Description copied from interface: NetworkAdminSpeedTestScheduledTest
These are the limits up to which the test can run, not the result of the test

Specified by:
getMaxUpBytePerSec in interface NetworkAdminSpeedTestScheduledTest
Returns:

getMaxDownBytePerSec

public long getMaxDownBytePerSec()
Specified by:
getMaxDownBytePerSec in interface NetworkAdminSpeedTestScheduledTest

start

public boolean start()
Specified by:
start in interface NetworkAdminSpeedTestScheduledTest

abort

public void abort()
Specified by:
abort in interface NetworkAdminSpeedTestScheduledTest

abort

public void abort(String reason)

resetSpeedLimits

protected void resetSpeedLimits()
Restore all the downloads the state before the speed test started.


setSpeedLimits

protected void setSpeedLimits()
Preserve all the data about the downloads while the test is running.


reportStage

protected void reportStage(String str)

reportComplete

protected void reportComplete()

addListener

public void addListener(NetworkAdminSpeedTestScheduledTestListener listener)
Specified by:
addListener in interface NetworkAdminSpeedTestScheduledTest

removeListener

public void removeListener(NetworkAdminSpeedTestScheduledTestListener listener)
Specified by:
removeListener in interface NetworkAdminSpeedTestScheduledTest