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

java.lang.Object
  extended by com.aelitis.azureus.core.networkmanager.admin.impl.NetworkAdminSpeedTesterImpl
      extended by com.aelitis.azureus.core.networkmanager.admin.impl.NetworkAdminSpeedTesterBTImpl
All Implemented Interfaces:
NetworkAdminSpeedTester

public class NetworkAdminSpeedTesterBTImpl
extends NetworkAdminSpeedTesterImpl
implements NetworkAdminSpeedTester


Field Summary
static String DOWNLOAD_AVE
           
static String DOWNLOAD_STD_DEV
           
static String UPLOAD_AVE
           
static String UPLOAD_STD_DEV
           
 
Fields inherited from interface com.aelitis.azureus.core.networkmanager.admin.NetworkAdminSpeedTester
TEST_TYPE_DOWNLOAD_ONLY, TEST_TYPE_UPLOAD_ONLY, TEST_TYPES
 
Constructor Summary
NetworkAdminSpeedTesterBTImpl(PluginInterface pi)
           
 
Method Summary
 void abort(String reason)
           
protected  void abort(String reason, Throwable cause)
           
 void complete(NetworkAdminSpeedTesterResult result)
           
protected static NetworkAdminSpeedTesterResult getLastResult()
           
 int getMode()
           
 NetworkAdminSpeedTesterResult getResult()
          Get the result for
 int getTestType()
           
 boolean getUseCrypto()
           
protected static void initialise()
           
 void setMode(int mode)
           
 void setUseCrypto(boolean _use_crypto)
           
 void start(TOTorrent tot)
          The downloads have been stopped just need to do the testing.
protected static void startUp()
           
 
Methods inherited from class com.aelitis.azureus.core.networkmanager.admin.impl.NetworkAdminSpeedTesterImpl
addListener, removeListener, sendResultToListeners, sendStageUpdateToListeners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.aelitis.azureus.core.networkmanager.admin.NetworkAdminSpeedTester
addListener, removeListener
 

Field Detail

DOWNLOAD_AVE

public static final String DOWNLOAD_AVE
See Also:
Constant Field Values

UPLOAD_AVE

public static final String UPLOAD_AVE
See Also:
Constant Field Values

DOWNLOAD_STD_DEV

public static final String DOWNLOAD_STD_DEV
See Also:
Constant Field Values

UPLOAD_STD_DEV

public static final String UPLOAD_STD_DEV
See Also:
Constant Field Values
Constructor Detail

NetworkAdminSpeedTesterBTImpl

public NetworkAdminSpeedTesterBTImpl(PluginInterface pi)
Parameters:
pi - - PluginInterface is used to get Manager classes.
Method Detail

initialise

protected static void initialise()

startUp

protected static void startUp()

getLastResult

protected static NetworkAdminSpeedTesterResult getLastResult()

getTestType

public int getTestType()
Specified by:
getTestType in interface NetworkAdminSpeedTester

setMode

public void setMode(int mode)
Specified by:
setMode in interface NetworkAdminSpeedTester

getMode

public int getMode()
Specified by:
getMode in interface NetworkAdminSpeedTester

setUseCrypto

public void setUseCrypto(boolean _use_crypto)
Specified by:
setUseCrypto in interface NetworkAdminSpeedTester

getUseCrypto

public boolean getUseCrypto()
Specified by:
getUseCrypto in interface NetworkAdminSpeedTester

start

public void start(TOTorrent tot)
The downloads have been stopped just need to do the testing.

Parameters:
tot - - Torrent recieved from testing service.

complete

public void complete(NetworkAdminSpeedTesterResult result)

abort

protected void abort(String reason,
                     Throwable cause)
Specified by:
abort in class NetworkAdminSpeedTesterImpl

abort

public void abort(String reason)
Specified by:
abort in class NetworkAdminSpeedTesterImpl

getResult

public NetworkAdminSpeedTesterResult getResult()
Get the result for

Returns:
Result object of speed test.