Class TestHiveMqServer

java.lang.Object
test.de.iip_ecosphere.platform.transport.AbstractTestServer
test.de.iip_ecosphere.platform.transport.mqttv3.TestHiveMqServer
All Implemented Interfaces:
de.iip_ecosphere.platform.support.Server

public class TestHiveMqServer
extends test.de.iip_ecosphere.platform.transport.AbstractTestServer
A simple embedded HiveMQ/MQTT test server for testing/experiments.
Author:
Holger Eichelberger, SSE
  • Field Summary

    Fields 
    Modifier and Type Field Description
    private de.iip_ecosphere.platform.support.ServerAddress addr  
    private com.hivemq.embedded.EmbeddedHiveMQ hiveMQ  
  • Constructor Summary

    Constructors 
    Constructor Description
    TestHiveMqServer​(de.iip_ecosphere.platform.support.ServerAddress addr)
    Creates the server instance.
  • Method Summary

    Modifier and Type Method Description
    de.iip_ecosphere.platform.support.Server start()  
    void stop​(boolean dispose)  

    Methods inherited from class test.de.iip_ecosphere.platform.transport.AbstractTestServer

    createTmpFolder, createTmpFolder, extractConfiguration, extractConfiguration, extractZip, getConfigDir, getConfigDir, runsFromJar, setConfigDir

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • hiveMQ

      private com.hivemq.embedded.EmbeddedHiveMQ hiveMQ
    • addr

      private de.iip_ecosphere.platform.support.ServerAddress addr
  • Constructor Details

    • TestHiveMqServer

      public TestHiveMqServer​(de.iip_ecosphere.platform.support.ServerAddress addr)
      Creates the server instance.
      Parameters:
      addr - the server address (schema is ignored)
  • Method Details

    • start

      public de.iip_ecosphere.platform.support.Server start()
    • stop

      public void stop​(boolean dispose)