Interface NetworkAdminSpeedTestScheduler
-
- All Known Implementing Classes:
NetworkAdminSpeedTestSchedulerImpl
public interface NetworkAdminSpeedTestScheduler
-
-
Field Summary
Fields Modifier and Type Field Description static int
TEST_TYPE_BT
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NetworkAdminSpeedTestScheduledTest
getCurrentTest()
returns the currently scheduled test, null if noneNetworkAdminSpeedTesterResult
getLastResult(int type)
Get the most recent result for a given test type, null if nonevoid
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 thisNetworkAdminSpeedTestScheduledTest
scheduleTest(int type)
Request a test using the testing service.
-
-
-
Field Detail
-
TEST_TYPE_BT
static final int TEST_TYPE_BT
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
NetworkAdminSpeedTestScheduledTest scheduleTest(int type) throws NetworkAdminException
Request a test using the testing service.- Parameters:
type
- - ID for the type of test - use abouve constants- Returns:
- boolean - true if a success, otherwise false.
- Throws:
NetworkAdminException
- -
-
getLastResult
NetworkAdminSpeedTesterResult getLastResult(int type)
Get the most recent result for a given test type, null if none- Parameters:
type
- - ID for the type of test - use abouve constants- Returns:
- - Result
-
-