Class MessageHub


  • public class MessageHub
    extends java.lang.Object
    Central class to connect to the host and send message.
    • Field Detail

      • m_debug

        private boolean m_debug
    • Constructor Detail

    • Method Detail

      • connect

        public void connect()
                     throws java.io.IOException
        Starts the connection.
        Throws:
        org.testng.TestNGException - if an exception occurred while establishing the connection
        java.io.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 java.net.SocketTimeoutException
        Throws:
        java.net.SocketTimeoutException