|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IWorkerAdapter
This interface should be implemented by the Master-Slave transport adapter. This interface is used by the Slave to pull suites and return results.
IMasterAdapter
Method Summary | |
---|---|
XmlSuite |
getSuite(long timeout)
A blocking call to get the next Suite to test. |
void |
init(java.util.Properties properties)
Initializes the worker adapter. |
void |
returnResult(ISuite result)
Return a suite result. |
Method Detail |
---|
void init(java.util.Properties properties) throws java.lang.Exception
properties
- holds the properties loaded from the remote.properties file.
java.lang.Exception
- adapter might throw any exception on initialization, which will abort this adapter.XmlSuite getSuite(long timeout) throws java.lang.InterruptedException, java.io.IOException
timeout
- the maximum time to wait for the next suite.
null
if the timeout has reached.
java.io.IOException
- might be thrown on IO error.
java.lang.InterruptedException
- if interrupted while waiting.void returnResult(ISuite result) throws java.io.IOException
result
- the result to return
java.io.IOException
- might be thrown on IO error.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |