org.testng.remote.strprotocol
Interface IMessageSender

All Known Implementing Classes:
BaseMessageSender, SerializedMessageSender, StringMessageSender

public interface IMessageSender


Method Summary
 void connect()
           
 void initReceiver()
          Initialize the receiver.
 IMessage receiveMessage()
          Will return null or throw EOFException when the connection has been severed.
 void sendAck()
           
 void sendMessage(IMessage message)
           
 void sendStop()
           
 void shutDown()
           
 

Method Detail

connect

void connect()
             throws IOException
Throws:
IOException

initReceiver

void initReceiver()
                  throws SocketTimeoutException
Initialize the receiver.

Throws:
SocketException - This exception will be thrown if a connection to the remote TestNG instance could not be established after ten seconds.
SocketTimeoutException

sendMessage

void sendMessage(IMessage message)
                 throws Exception
Throws:
Exception

receiveMessage

IMessage receiveMessage()
                        throws Exception
Will return null or throw EOFException when the connection has been severed.

Throws:
Exception

shutDown

void shutDown()

sendAck

void sendAck()

sendStop

void sendStop()


Copyright © 2011. All Rights Reserved.