com.aelitis.azureus.core.networkmanager.admin
Interface NetworkAdminSpeedTestScheduler

All Known Implementing Classes:
NetworkAdminSpeedTestSchedulerImpl

public interface NetworkAdminSpeedTestScheduler


Field Summary
static int TEST_TYPE_BT
           
 
Method Summary
 NetworkAdminSpeedTestScheduledTest getCurrentTest()
          returns the currently scheduled test, null if none
 NetworkAdminSpeedTesterResult getLastResult(int type)
          Get the most recent result for a given test type, null if none
 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
 NetworkAdminSpeedTestScheduledTest 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