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
 voidawaitTermination(long timeout)
          A blocking wait for the remote results to return.
 voidinit(Properties prop)
          Initializes the Master adapter.
 voidrunSuitesRemotely(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 © 2012. All Rights Reserved.


NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14