Interface NetworkAdminSpeedTestScheduler
- All Known Implementing Classes:
NetworkAdminSpeedTestSchedulerImpl
public interface NetworkAdminSpeedTestScheduler
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionreturns the currently scheduled test, null if nonegetLastResult
(int type) Get the most recent result for a given test type, null if nonevoid
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
-
TEST_TYPE_BT
static final int TEST_TYPE_BT- See Also:
-
-
Method Details
-
initialise
void initialise()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 -
getCurrentTest
NetworkAdminSpeedTestScheduledTest getCurrentTest()returns the currently scheduled test, null if none- Returns:
- - NetworkAdminSpeedTestScheduledTest
-
scheduleTest
Request a test using the testing service.- 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 a given test type, null if none- Parameters:
type
- - ID for the type of test - use above constants- Returns:
- - Result
-