Class NetworkAdminSpeedTesterBTImpl.BitTorrentResult
- java.lang.Object
-
- com.biglybt.core.networkmanager.admin.impl.NetworkAdminSpeedTesterBTImpl.BitTorrentResult
-
- All Implemented Interfaces:
NetworkAdminSpeedTesterResult
- Enclosing class:
- NetworkAdminSpeedTesterBTImpl
class NetworkAdminSpeedTesterBTImpl.BitTorrentResult extends java.lang.Object implements NetworkAdminSpeedTesterResult
-
-
Constructor Summary
Constructors Constructor Description BitTorrentResult(java.lang.String errorMsg)
Build a Result if the test failed with an error.BitTorrentResult(java.util.Map uploadRes, java.util.Map downloadRes)
Build a Result for a successful test.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDownloadSpeed()
java.lang.String
getLastError()
java.lang.String
getResultString()
NetworkAdminSpeedTester
getTest()
long
getTestTime()
int
getUploadSpeed()
boolean
hadError()
java.lang.String
toString()
-
-
-
Constructor Detail
-
BitTorrentResult
public BitTorrentResult(java.util.Map uploadRes, java.util.Map downloadRes)
Build a Result for a successful test.- Parameters:
uploadRes
- - Mapof upload results. downloadRes
- - Mapof download results.
-
BitTorrentResult
public BitTorrentResult(java.lang.String errorMsg)
Build a Result if the test failed with an error.- Parameters:
errorMsg
- - why the test failed.
-
-
Method Detail
-
getTest
public NetworkAdminSpeedTester getTest()
- Specified by:
getTest
in interfaceNetworkAdminSpeedTesterResult
-
getTestTime
public long getTestTime()
- Specified by:
getTestTime
in interfaceNetworkAdminSpeedTesterResult
-
getDownloadSpeed
public int getDownloadSpeed()
- Specified by:
getDownloadSpeed
in interfaceNetworkAdminSpeedTesterResult
-
getUploadSpeed
public int getUploadSpeed()
- Specified by:
getUploadSpeed
in interfaceNetworkAdminSpeedTesterResult
-
hadError
public boolean hadError()
- Specified by:
hadError
in interfaceNetworkAdminSpeedTesterResult
-
getLastError
public java.lang.String getLastError()
- Specified by:
getLastError
in interfaceNetworkAdminSpeedTesterResult
-
getResultString
public java.lang.String getResultString()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-