public class DefaultMastertAdapter extends java.lang.Object implements IMasterAdapter
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
HOSTS |
| Constructor and Description |
|---|
DefaultMastertAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
awaitTermination(long timeout)
A blocking wait for the remote results to return.
|
void |
init(java.util.Properties properties)
Initializes the Master adapter.
|
void |
runSuitesRemotely(XmlSuite suite,
RemoteResultListener listener)
Run a suite remotely.
|
public static final java.lang.String HOSTS
public void init(java.util.Properties properties)
IMasterAdapterinit in interface IMasterAdapterproperties - holds the properties loaded from the remote.properties file.public void runSuitesRemotely(XmlSuite suite, RemoteResultListener listener) throws java.io.IOException
IMasterAdapterrunSuitesRemotely in interface IMasterAdaptersuite - the suite to send.listener - the corresponded listener, should be called when result is ready.java.io.IOException - might be thrown on IO error.public void awaitTermination(long timeout)
throws java.lang.InterruptedException
IMasterAdapterawaitTermination in interface IMasterAdaptertimeout - the maximum time to wait for all the suites to return a result.java.lang.InterruptedException