Package com.vuze.plugins.mlab
Class MLabRunner
java.lang.Object
com.vuze.plugins.mlab.MLabRunner
public class MLabRunner extends Object
As modified from BiglyBT MLabPlugin
- Since:
- 0.9.38
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
MLabRunner.ToolListener
The parameter for runNDT()static interface
MLabRunner.ToolRun
Returned from runNDTstatic interface
MLabRunner.ToolRunListener
The listener for ToolRun -
Method Summary
Modifier and Type Method Description static MLabRunner
getInstance(I2PAppContext ctx)
boolean
isRunning()
static void
main(String[] args)
standalone testMLabRunner.ToolRun
runNDT(MLabRunner.ToolListener listener)
Non-blocking, spawns a thread and returns immediately.MLabRunner.ToolRun
runNDT(MLabRunner.ToolListener listener, boolean use_SSL, String serverHost)
Non-blocking, spawns a thread and returns immediately.
-
Method Details
-
getInstance
-
isRunning
public boolean isRunning() -
runNDT
Non-blocking, spawns a thread and returns immediately.- Parameters:
listener
- use to detect completion and get results- Returns:
- a ToolRun object which may be used to cancel the test, or null if there was already a test in progress.
-
runNDT
public MLabRunner.ToolRun runNDT(MLabRunner.ToolListener listener, boolean use_SSL, String serverHost)Non-blocking, spawns a thread and returns immediately.- Parameters:
listener
- use to detect completion and get resultsuse_SSL
- whether to use SSL to talk to the serversserverHost
- if non-null, bypass the name server and run test with this host- Returns:
- a ToolRun object which may be used to cancel the test, or null if there was already a test in progress.
- Since:
- 0.9.39
-
main
standalone test
-