org.testng.remote.strprotocol
Class StringMessageSenderHelper

java.lang.Object
  extended by org.testng.remote.strprotocol.StringMessageSenderHelper

public class StringMessageSenderHelper
extends Object

String based socket based communication.

Author:
Alexandru Popescu

Constructor Summary
StringMessageSenderHelper(String host, int port)
           
 
Method Summary
 boolean connect()
          Starts the connection.
 void sendMessage(IMessage message)
           
 void sendMessage(IStringMessage message)
           
 void shutDown()
          Shutsdown the connection to the remote test listener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringMessageSenderHelper

public StringMessageSenderHelper(String host,
                                 int port)
Method Detail

connect

public boolean connect()
Starts the connection.

Returns:
true if the connection was successfull, false otherwise
Throws:
TestNGException - if an exception occured while establishing the connection

shutDown

public void shutDown()
Shutsdown the connection to the remote test listener.


sendMessage

public void sendMessage(IMessage message)

sendMessage

public void sendMessage(IStringMessage message)


Copyright © 2010. All Rights Reserved.