public class DefaultWorkerAdapter extends Object implements IWorkerAdapter
| Modifier and Type | Field and Description |
|---|---|
static String |
SLAVE_PORT |
| Constructor and Description |
|---|
DefaultWorkerAdapter() |
| Modifier and Type | Method and Description |
|---|---|
XmlSuite |
getSuite(long timeout)
A blocking call to get the next Suite to test.
|
void |
init(Properties prop)
Initializes the worker adapter.
|
void |
returnResult(ISuite result)
Return a suite result.
|
public static final String SLAVE_PORT
public void init(Properties prop) throws Exception
IWorkerAdapterinit in interface IWorkerAdapterprop - holds the properties loaded from the remote.properties file.Exception - adapter might throw any exception on initialization, which will abort this adapter.public XmlSuite getSuite(long timeout) throws InterruptedException, IOException
IWorkerAdaptergetSuite in interface IWorkerAdaptertimeout - the maximum time to wait for the next suite.null if the timeout has reached.InterruptedException - if interrupted while waiting.IOException - might be thrown on IO error.public void returnResult(ISuite result) throws IOException
IWorkerAdapterreturnResult in interface IWorkerAdapterresult - the result to returnIOException - might be thrown on IO error.Copyright © 2016. All Rights Reserved.