Class NetworkAdminSpeedTestSchedulerImpl
java.lang.Object
com.biglybt.core.networkmanager.admin.impl.NetworkAdminSpeedTestSchedulerImpl
- All Implemented Interfaces:
NetworkAdminSpeedTestScheduler
public class NetworkAdminSpeedTestSchedulerImpl
extends Object
implements NetworkAdminSpeedTestScheduler
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) NetworkAdminSpeedTestScheduledTestImpl
private static NetworkAdminSpeedTestSchedulerImpl
Fields inherited from interface com.biglybt.core.networkmanager.admin.NetworkAdminSpeedTestScheduler
TEST_TYPE_BT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreturns the currently scheduled test, null if nonegetLastResult
(int type) Get the most recent result for the test.void
If system crashes on start-up, then speed tests torrents need to be cleaned on start-up etc - call this method on start to allow thisscheduleTest
(int type) Request a test using the testing service.
-
Field Details
-
instance
-
currentTest
NetworkAdminSpeedTestScheduledTestImpl currentTest
-
-
Constructor Details
-
NetworkAdminSpeedTestSchedulerImpl
private NetworkAdminSpeedTestSchedulerImpl()
-
-
Method Details
-
getInstance
-
initialise
public void initialise()Description copied from interface:NetworkAdminSpeedTestScheduler
If system crashes on start-up, then speed tests torrents need to be cleaned on start-up etc - call this method on start to allow this- Specified by:
initialise
in interfaceNetworkAdminSpeedTestScheduler
-
getCurrentTest
Description copied from interface:NetworkAdminSpeedTestScheduler
returns the currently scheduled test, null if none- Specified by:
getCurrentTest
in interfaceNetworkAdminSpeedTestScheduler
- Returns:
- - NetworkAdminSpeedTestScheduledTest
-
scheduleTest
Description copied from interface:NetworkAdminSpeedTestScheduler
Request a test using the testing service.- Specified by:
scheduleTest
in interfaceNetworkAdminSpeedTestScheduler
- Parameters:
type
- - ID for the type of test - use above constants- Returns:
- boolean - true if a success, otherwise false.
- Throws:
NetworkAdminException
- -
-
getLastResult
Get the most recent result for the test.- Specified by:
getLastResult
in interfaceNetworkAdminSpeedTestScheduler
- Parameters:
type
- - ID for the type of test - use above constants- Returns:
- - Result
-