org.testng.remote.adapter
Interface IMasterAdapter

All Known Implementing Classes:
DefaultMastertAdapter

public interface IMasterAdapter

This interface should be implemented by the Master-Slave transport adapter. This interface is used by the Master to push suites and get results.

Author:
Guy Korland
See Also:
IWorkerAdapter

Method Summary
 void awaitTermination(long timeout)
          A blocking wait for the remote results to return.
 void init(Properties prop)
          Initializes the Master adapter.
 void runSuitesRemotely(XmlSuite suite, RemoteResultListener listener)
          Run a suite remotely.
 

Method Detail

init

void init(Properties prop)
          throws Exception
Initializes the Master adapter.

Parameters:
properties - holds the properties loaded from the remote.properties file.
Throws:
Exception - adapter might throw any exception on initialization, which will abort this adapter.

runSuitesRemotely

void runSuitesRemotely(XmlSuite suite,
                       RemoteResultListener listener)
                       throws IOException
Run a suite remotely.

Parameters:
suite - the suite to send.
listener - the corresponded listener, should be called when result is ready.
Throws:
IOException - might be thrown on IO error.

awaitTermination

void awaitTermination(long timeout)
                      throws InterruptedException
A blocking wait for the remote results to return.

Parameters:
timeout - the maximum time to wait for all the suites to return a result.
Throws:
InterruptedException


Copyright © 2011. All Rights Reserved.