org.testng.remote.adapter
Class DefaultMastertAdapter

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

public class DefaultMastertAdapter
extends java.lang.Object
implements IMasterAdapter

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

Author:
Guy Korland

Field Summary
static java.lang.String HOSTS
           
 
Constructor Summary
DefaultMastertAdapter()
           
 
Method Summary
 void awaitTermination(long timeout)
          A blocking wait for the remote results to return.
 void init(java.util.Properties properties)
          Initializes the Master adapter.
 void runSuitesRemotely(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 java.lang.String HOSTS
See Also:
Constant Field Values
Constructor Detail

DefaultMastertAdapter

public DefaultMastertAdapter()
Method Detail

init

public void init(java.util.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 java.io.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:
java.io.IOException - might be thrown on IO error.

awaitTermination

public void awaitTermination(long timeout)
                      throws java.lang.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:
java.lang.InterruptedException


Copyright © 2011. All Rights Reserved.