public class DefaultMastertAdapter extends Object implements IMasterAdapter
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(Properties properties)
Initializes the Master adapter.
|
void |
runSuitesRemotely(XmlSuite suite,
RemoteResultListener listener)
Run a suite remotely.
|
public static final String HOSTS
public void init(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 IOException
IMasterAdapter
runSuitesRemotely
in interface IMasterAdapter
suite
- the suite to send.listener
- the corresponded listener, should be called when result is ready.IOException
- might be thrown on IO error.public void awaitTermination(long timeout) throws InterruptedException
IMasterAdapter
awaitTermination
in interface IMasterAdapter
timeout
- the maximum time to wait for all the suites to return a result.InterruptedException
Copyright © 2016. All rights reserved.