public class MLabRunner extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface | MLabRunner.ToolListenerThe parameter for runNDT() |
static interface | MLabRunner.ToolRunReturned from runNDT |
static interface | MLabRunner.ToolRunListenerThe listener for ToolRun |
| Modifier and Type | Method and Description |
|---|---|
static MLabRunner | getInstance(I2PAppContext ctx)The singleton instance. |
boolean | isRunning()Check if a test is currently running. |
static void | main(String[] args)Standalone test |
MLabRunner.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. |
public static MLabRunner getInstance(I2PAppContext ctx)
ctx - the application contextpublic boolean isRunning()
public static void main(String[] args)
args - command line argumentspublic MLabRunner.ToolRun runNDT(MLabRunner.ToolListener listener)
listener - use to detect completion and get resultspublic MLabRunner.ToolRun runNDT(MLabRunner.ToolListener listener, boolean use_SSL, String serverHost)
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