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
 voidconnect()
          Starts the connection.
 IMessageSendergetMessageSender()
           
 voidinitReceiver()
           
 IMessagereceiveMessage()
           
 voidsendMessage(IMessage message)
           
 voidsetDebug(boolean debug)
           
 voidshutDown()
          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.


NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14