Class NetworkAdminSpeedTesterBTImpl
java.lang.Object
com.biglybt.core.networkmanager.admin.impl.NetworkAdminSpeedTesterImpl
com.biglybt.core.networkmanager.admin.impl.NetworkAdminSpeedTesterBTImpl
- All Implemented Interfaces:
NetworkAdminSpeedTester
public class NetworkAdminSpeedTesterBTImpl
extends NetworkAdminSpeedTesterImpl
implements NetworkAdminSpeedTester
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) classprivate class-------------------- helper class to monitor test. -
Field Summary
FieldsModifier and TypeFieldDescription(package private) boolean(package private) Stringstatic final Stringstatic final String(package private) static NetworkAdminSpeedTesterResultprivate final PluginInterfaceprivate static TorrentAttribute(package private) booleanprivate boolean(package private) static intstatic final Stringstatic final String(package private) booleanFields inherited from interface NetworkAdminSpeedTester
TEST_TYPE_DOWNLOAD_ONLY, TEST_TYPE_UPLOAD_ONLY, TEST_TYPES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected void(package private) static DoubleautoboxDouble(double d) (package private) static LongautoboxLong(long l) private static longautoboxLong(Long l) (package private) static longvoidprotected static NetworkAdminSpeedTesterResultintgetMode()Get the result forintbooleanprotected static voidvoidsetMode(int mode) (package private) static intsetStartPieceBasedOnMode(int mode, int totalPieces) Depending on the mode we want to upload all the set all, none or only half the pieces to done.voidsetUseCrypto(boolean _use_crypto) voidThe downloads have been stopped just need to do the testing.protected static voidstartUp()Methods inherited from class NetworkAdminSpeedTesterImpl
addListener, removeListener, sendResultToListeners, sendStageUpdateToListenersMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface NetworkAdminSpeedTester
addListener, removeListener
-
Field Details
-
DOWNLOAD_AVE
- See Also:
-
UPLOAD_AVE
- See Also:
-
DOWNLOAD_STD_DEV
- See Also:
-
UPLOAD_STD_DEV
- See Also:
-
testMode
static int testMode -
speedTestAttrib
-
lastResult
-
plugin
-
test_started
private boolean test_started -
test_completed
boolean test_completed -
use_crypto
boolean use_crypto -
aborted
volatile boolean aborted -
deferred_abort
String deferred_abort
-
-
Constructor Details
-
NetworkAdminSpeedTesterBTImpl
- Parameters:
pi- - PluginInterface is used to get Manager classes.
-
-
Method Details
-
initialise
protected static void initialise() -
startUp
protected static void startUp() -
getLastResult
-
getTestType
public int getTestType()- Specified by:
getTestTypein interfaceNetworkAdminSpeedTester
-
setMode
public void setMode(int mode) - Specified by:
setModein interfaceNetworkAdminSpeedTester
-
getMode
public int getMode()- Specified by:
getModein interfaceNetworkAdminSpeedTester
-
setUseCrypto
public void setUseCrypto(boolean _use_crypto) - Specified by:
setUseCryptoin interfaceNetworkAdminSpeedTester
-
getUseCrypto
public boolean getUseCrypto()- Specified by:
getUseCryptoin interfaceNetworkAdminSpeedTester
-
start
The downloads have been stopped just need to do the testing.- Parameters:
tot- - Torrent received from testing service.
-
complete
-
abort
- Specified by:
abortin classNetworkAdminSpeedTesterImpl
-
abort
- Specified by:
abortin classNetworkAdminSpeedTesterImpl
-
getResult
Get the result for- Returns:
- Result object of speed test.
-
setStartPieceBasedOnMode
static int setStartPieceBasedOnMode(int mode, int totalPieces) Depending on the mode we want to upload all the set all, none or only half the pieces to done.- Parameters:
mode- - int that maps to NetworkAdminSpeedTestScheduler.TEST_TYPE...totalPieces- - total pieces in this test torrent.- Returns:
- - int - the starting piece number to setDone to true.
-
autoboxLong
-
autoboxLong
-
autoboxLong
-
autoboxDouble
-