com.aelitis.azureus.core.networkmanager.admin.impl
Class NetworkAdminSpeedTestSchedulerImpl

java.lang.Object
  extended by com.aelitis.azureus.core.networkmanager.admin.impl.NetworkAdminSpeedTestSchedulerImpl
All Implemented Interfaces:
NetworkAdminSpeedTestScheduler

public class NetworkAdminSpeedTestSchedulerImpl
extends Object
implements NetworkAdminSpeedTestScheduler


Field Summary
 
Fields inherited from interface com.aelitis.azureus.core.networkmanager.admin.NetworkAdminSpeedTestScheduler
TEST_TYPE_BT
 
Method Summary
 NetworkAdminSpeedTestScheduledTest getCurrentTest()
          returns the currently scheduled test, null if none
static NetworkAdminSpeedTestScheduler getInstance()
           
 NetworkAdminSpeedTesterResult getLastResult(int type)
          Get the most recent result for the test.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static NetworkAdminSpeedTestScheduler 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 interface NetworkAdminSpeedTestScheduler

getCurrentTest

public NetworkAdminSpeedTestScheduledTest getCurrentTest()
Description copied from interface: NetworkAdminSpeedTestScheduler
returns the currently scheduled test, null if none

Specified by:
getCurrentTest in interface NetworkAdminSpeedTestScheduler
Returns:
- NetworkAdminSpeedTestScheduledTest

scheduleTest

public NetworkAdminSpeedTestScheduledTest scheduleTest(int type)
                                                throws NetworkAdminException
Description copied from interface: NetworkAdminSpeedTestScheduler
Request a test using the testing service.

Specified by:
scheduleTest in interface NetworkAdminSpeedTestScheduler
Parameters:
type - - ID for the type of test - use abouve constants
Returns:
boolean - true if a success, otherwise false.
Throws:
NetworkAdminException - -

getLastResult

public NetworkAdminSpeedTesterResult getLastResult(int type)
Get the most recent result for the test.

Specified by:
getLastResult in interface NetworkAdminSpeedTestScheduler
Parameters:
type - - ID for the type of test - use abouve constants
Returns:
- Result