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)
IMasterAdapter
init
in interface IMasterAdapter
properties
- holds the properties loaded from the remote.properties file.public void runSuitesRemotely(XmlSuite suite, RemoteResultListener listener) throws java.io.IOException
IMasterAdapter
runSuitesRemotely
in interface IMasterAdapter
suite
- 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
IMasterAdapter
awaitTermination
in interface IMasterAdapter
timeout
- the maximum time to wait for all the suites to return a result.java.lang.InterruptedException