org.testng.remote.adapter
Class DefaultMastertAdapter

java.lang.Object  extended by org.testng.remote.adapter.DefaultMastertAdapter
All Implemented Interfaces:
IMasterAdapter

public class DefaultMastertAdapter
extends Object
implements IMasterAdapter

Default Master adapter, provides an adapter based on hosts file.

Author:
Guy Korland


Field Summary
static StringHOSTS
           
 
Constructor Summary
DefaultMastertAdapter()
           
 
Method Summary
 voidawaitTermination(long timeout)
          A blocking wait for the remote results to return.
 voidinit(Properties properties)
          Initializes the Master adapter.
 voidrunSuitesRemotely(XmlSuite suite, RemoteResultListener listener)
          Run a suite remotely.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HOSTS

public static final String HOSTS
See Also:
Constant Field Values
Constructor Detail

DefaultMastertAdapter

public DefaultMastertAdapter()
Method Detail

init

public void init(Properties properties)
Description copied from interface: IMasterAdapter
Initializes the Master adapter.

Specified by:
init in interface IMasterAdapter

runSuitesRemotely

public void runSuitesRemotely(XmlSuite suite,                              RemoteResultListener listener)                       throws IOException
Description copied from interface: IMasterAdapter
Run a suite remotely.

Specified by:
runSuitesRemotely in interface IMasterAdapter
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

public void awaitTermination(long timeout)                      throws InterruptedException
Description copied from interface: IMasterAdapter
A blocking wait for the remote results to return.

Specified by:
awaitTermination in interface IMasterAdapter
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