Class TestHiveMqTlsServer
java.lang.Object
test.de.iip_ecosphere.platform.transport.AbstractTestServer
test.de.iip_ecosphere.platform.test.mqtt.hivemq.TestHiveMqServer
test.de.iip_ecosphere.platform.test.mqtt.hivemq.TestHiveMqTlsServer
- All Implemented Interfaces:
de.iip_ecosphere.platform.support.Server
A simple embedded HiveMQ/MQTT TLS test server for testing/experiments. This class requires Java 11.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
Fields inherited from class test.de.iip_ecosphere.platform.test.mqtt.hivemq.TestHiveMqServer
KEY_ALIAS, KEYSTORE_PASSWORD, TRUSTSTORE_PASSWORD -
Constructor Summary
ConstructorsConstructorDescriptionTestHiveMqTlsServer(de.iip_ecosphere.platform.support.ServerAddress addr) Creates the server instance. -
Method Summary
Methods inherited from class test.de.iip_ecosphere.platform.test.mqtt.hivemq.TestHiveMqServer
getServerAddress, start, stopMethods inherited from class test.de.iip_ecosphere.platform.transport.AbstractTestServer
applyBaseDir, extractConfiguration, extractConfiguration, getConfigDir, getConfigDir, getInteger, getInteger, getString, runsFromJar, scheduleShutdownHook, setConfigDir
-
Constructor Details
-
TestHiveMqTlsServer
public TestHiveMqTlsServer(de.iip_ecosphere.platform.support.ServerAddress addr) Creates the server instance.- Parameters:
addr- the server address (schema is ignored)
-
-
Method Details
-
main
Starts the server from the command line.- Parameters:
args- the first argument may be the port number, else 8883 is used; optionally --host=<name> may be given afterwards
-