org.testng.remote.strprotocol
Class MessageHub

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

public class MessageHub
extends Object

Central class to connect to the host and send message.

Author:
Cedric Beust

Constructor Summary
MessageHub(IMessageSender messageSender)
           
 
Method Summary
 void connect()
          Starts the connection.
 IMessageSender getMessageSender()
           
 void initReceiver()
           
 IMessage receiveMessage()
           
 void sendMessage(IMessage message)
           
 void setDebug(boolean debug)
           
 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

MessageHub

public MessageHub(IMessageSender messageSender)
Method Detail

connect

public void connect()
             throws IOException
Starts the connection.

Throws:
TestNGException - if an exception occurred while establishing the connection
IOException

shutDown

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


sendMessage

public void sendMessage(IMessage message)

receiveMessage

public IMessage receiveMessage()

setDebug

public void setDebug(boolean debug)

initReceiver

public void initReceiver()
                  throws SocketTimeoutException
Throws:
SocketTimeoutException

getMessageSender

public IMessageSender getMessageSender()


Copyright © 2012. All Rights Reserved.