Package org.testng.remote

Examples of org.testng.remote.ConnectionInfo


      addSlave(s);
    }
  }
 
  public void addSlave(Socket s) {
    ConnectionInfo ci = new ConnectionInfo();
    ci.setSocket(s);
    addSlave(s, ci);
  }
View Full Code Here


    m_hosts.add(s);
    m_connectionInfos.put(s, ci);
  }
 
  public ConnectionInfo getSlave() {
    ConnectionInfo result = null;
    Socket host = null;
   
    try {
      host = m_hosts.take();
      result = m_connectionInfos.get(host);
View Full Code Here

  }
 
  private static ConnectionInfo resetSocket(int clientPort, ConnectionInfo oldCi)
    throws IOException
  {
    ConnectionInfo result = new ConnectionInfo();
    ServerSocket serverSocket = new ServerSocket(clientPort);
    serverSocket.setReuseAddress(true);
    log("Waiting for connections on port " + clientPort);
    Socket socket = serverSocket.accept();
    result.setSocket(socket);
   
    return result;
  }
View Full Code Here

   * created to run it.
   * @throws IOException
   */
  private void waitForSuites() {
    try {
      ConnectionInfo ci = resetSocket(m_clientPort, null);
      while (true) {
        try {
          XmlSuite s = (XmlSuite) ci.getOis().readObject();
          log("Processing " + s.getName());
          m_suites = new ArrayList<XmlSuite>();
          m_suites.add(s);
          List<ISuite> suiteRunners = runSuitesLocally();
          ISuite sr = suiteRunners.get(0);
          log("Done processing " + s.getName());
          ci.getOos().writeObject(sr);
        }
        catch (ClassNotFoundException e) {
          e.printStackTrace(System.out);
        }     
        catch(EOFException ex) {
View Full Code Here

  }
 
  private static ConnectionInfo resetSocket(int clientPort, ConnectionInfo oldCi)
  throws IOException
  {
    ConnectionInfo result = new ConnectionInfo();
    ServerSocket serverSocket = new ServerSocket(clientPort);
    serverSocket.setReuseAddress(true);
    log("Waiting for connections on port " + clientPort);
    Socket socket = serverSocket.accept();
    result.setSocket(socket);

    return result;
  }
View Full Code Here

  }
 
  public void addSlave(Socket s) {
    if( s==null)
      return;
    ConnectionInfo ci = new ConnectionInfo();
    ci.setSocket(s);
    addSlave(s, ci);
  }
View Full Code Here

    m_hosts.add(s);
    m_connectionInfos.put(s, ci);
  }
 
  public ConnectionInfo getSlave() {
    ConnectionInfo result = null;
    Socket host = null;
   
    try {
      host = m_hosts.take();
      result = m_connectionInfos.get(host);
View Full Code Here

  }
 
  private static ConnectionInfo resetSocket(int clientPort, ConnectionInfo oldCi)
  throws IOException
  {
    ConnectionInfo result = new ConnectionInfo();
    ServerSocket serverSocket = new ServerSocket(clientPort);
    serverSocket.setReuseAddress(true);
    log("Waiting for connections on port " + clientPort);
    Socket socket = serverSocket.accept();
    result.setSocket(socket);

    return result;
  }
View Full Code Here

  }

  private static ConnectionInfo resetSocket(int clientPort, ConnectionInfo oldCi)
  throws IOException
  {
    ConnectionInfo result = new ConnectionInfo();
    ServerSocket serverSocket = new ServerSocket(clientPort);
    serverSocket.setReuseAddress(true);
    log("Waiting for connections on port " + clientPort);
    Socket socket = serverSocket.accept();
    result.setSocket(socket);

    return result;
  }
View Full Code Here

  }
 
  public void addSlave(Socket s) {
    if( s==null)
      return;
    ConnectionInfo ci = new ConnectionInfo();
    ci.setSocket(s);
    addSlave(s, ci);
  }
View Full Code Here

TOP

Related Classes of org.testng.remote.ConnectionInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.