public final class MqttBrokerPublisher extends Object
A MQTT example using a Storm topology.
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
The main method.
|
static void |
publish()
Publishes topics on connection.
|
static void |
startBroker()
Initializes
broker and starts it. |
static void |
startPublisher()
Initializes
connection . |
public static void startBroker() throws Exception
Initializes broker
and starts it.
Exception
- if an exception during adding a connector occurspublic static void startPublisher() throws Exception
Initializes connection
.
Exception
- if an exception during connecting to connector occurspublic static void publish() throws Exception
Publishes topics on connection.
Exception
- if an exception during publishing occursCopyright © 2020 The Apache Software Foundation. All rights reserved.