org.testng.remote.strprotocol
Class MessageHub
java.lang.Object
org.testng.remote.strprotocol.MessageHub
public class MessageHub
- extends Object
Central class to connect to the host and send message.
- Author:
- Cedric Beust
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessageHub
public MessageHub(IMessageSender messageSender)
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 © 2015. All Rights Reserved.