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
IWorkerAdapter
init
in interface IWorkerAdapter
prop
- 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
IWorkerAdapter
getSuite
in interface IWorkerAdapter
timeout
- 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
IWorkerAdapter
returnResult
in interface IWorkerAdapter
result
- the result to returnIOException
- might be thrown on IO error.Copyright © 2015. All rights reserved.