#include <Broker.h>
Public Member Functions | |
| Broker (Bridge &bridge, const std::string &sessionStoreFileName, const std::string &instanceName, const std::string &protocol, const std::string &encryption, const std::string &transport, const nlohmann::json &address, const std::string &clientId, const uint16_t keepAlive, bool cleanSession, const std::string &willTopic, const std::string &willMessage, const uint8_t willQoS, bool willRetain, const std::string &username, const std::string &password, bool loopPrevention, const std::string &prefix, bool disabled, const std::list< iot::mqtt::Topic > &topics) | |
| Broker (Broker &&)=default | |
| Broker (const Broker &)=delete | |
| Bridge & | getBridge () const |
| const std::string & | getSessionStoreFileName () const |
| const std::string & | getClientId () const |
| uint16_t | getKeepAlive () const |
| bool | getCleanSession () const |
| const std::string & | getWillTopic () const |
| const std::string & | getWillMessage () const |
| uint8_t | getWillQoS () const |
| bool | getWillRetain () const |
| const std::string & | getUsername () const |
| const std::string & | getPassword () const |
| bool | getLoopPrevention () const |
| const std::string & | getName () const |
| const std::string & | getProtocol () const |
| const std::string & | getEncryption () const |
| const std::string & | getTransport () const |
| const std::string & | getPrefix () const |
| bool | getDisabled () const |
| const std::list< iot::mqtt::Topic > & | getTopics () const |
| const nlohmann::json & | getAddress () const |
Private Attributes | |
| Bridge & | bridge |
| std::string | sessionStoreFileName |
| std::string | instanceName |
| std::string | protocol |
| std::string | encryption |
| std::string | transport |
| nlohmann::json | address |
| std::string | clientId |
| uint16_t | keepAlive |
| bool | cleanSession |
| std::string | willTopic |
| std::string | willMessage |
| uint8_t | willQoS |
| bool | willRetain |
| std::string | username |
| std::string | password |
| bool | loopPrevention |
| std::string | prefix |
| bool | disabled |
| std::list< iot::mqtt::Topic > | topics |
| mqtt::bridge::lib::Broker::Broker | ( | Bridge & | bridge, |
| const std::string & | sessionStoreFileName, | ||
| const std::string & | instanceName, | ||
| const std::string & | protocol, | ||
| const std::string & | encryption, | ||
| const std::string & | transport, | ||
| const nlohmann::json & | address, | ||
| const std::string & | clientId, | ||
| const uint16_t | keepAlive, | ||
| bool | cleanSession, | ||
| const std::string & | willTopic, | ||
| const std::string & | willMessage, | ||
| const uint8_t | willQoS, | ||
| bool | willRetain, | ||
| const std::string & | username, | ||
| const std::string & | password, | ||
| bool | loopPrevention, | ||
| const std::string & | prefix, | ||
| bool | disabled, | ||
| const std::list< iot::mqtt::Topic > & | topics ) |
Definition at line 52 of file Broker.cpp.
References address, bridge, cleanSession, clientId, disabled, encryption, instanceName, keepAlive, loopPrevention, password, prefix, protocol, sessionStoreFileName, topics, transport, username, willMessage, willQoS, willRetain, and willTopic.
|
default |
|
delete |
| const nlohmann::json & mqtt::bridge::lib::Broker::getAddress | ( | ) | const |
| Bridge & mqtt::bridge::lib::Broker::getBridge | ( | ) | const |
Definition at line 94 of file Broker.cpp.
References bridge.
Referenced by addBridgeBrokerConnection(), closeBridgeBrokerConnection(), mqtt::bridge::SocketContextFactory::create(), mqtt::mqttbridge::websocket::SubProtocolFactory::create(), delBridgeBrokerConnection(), mqtt::bridge::lib::Mqtt::onConnack(), mqtt::bridge::lib::Mqtt::onDisconnected(), and mqtt::bridge::lib::Mqtt::onPublish().
| bool mqtt::bridge::lib::Broker::getCleanSession | ( | ) | const |
Definition at line 110 of file Broker.cpp.
References cleanSession.
Referenced by mqtt::bridge::lib::Mqtt::Mqtt(), and mqtt::bridge::lib::Mqtt::onConnected().
| const std::string & mqtt::bridge::lib::Broker::getClientId | ( | ) | const |
Definition at line 102 of file Broker.cpp.
References clientId.
Referenced by mqtt::bridge::SocketContextFactory::create(), mqtt::mqttbridge::websocket::SubProtocolFactory::create(), and mqtt::bridge::lib::Mqtt::Mqtt().
| bool mqtt::bridge::lib::Broker::getDisabled | ( | ) | const |
| const std::string & mqtt::bridge::lib::Broker::getEncryption | ( | ) | const |
Definition at line 150 of file Broker.cpp.
References encryption.
Referenced by mqtt::bridge::SocketContextFactory::create(), and mqtt::mqttbridge::websocket::SubProtocolFactory::create().
| uint16_t mqtt::bridge::lib::Broker::getKeepAlive | ( | ) | const |
Definition at line 106 of file Broker.cpp.
References keepAlive.
Referenced by mqtt::bridge::lib::Mqtt::Mqtt().
| bool mqtt::bridge::lib::Broker::getLoopPrevention | ( | ) | const |
Definition at line 138 of file Broker.cpp.
References loopPrevention.
Referenced by mqtt::bridge::lib::Mqtt::Mqtt(), and mqtt::bridge::lib::Mqtt::onConnected().
| const std::string & mqtt::bridge::lib::Broker::getName | ( | ) | const |
Definition at line 142 of file Broker.cpp.
References instanceName.
Referenced by mqtt::bridge::SocketContextFactory::create(), and mqtt::mqttbridge::websocket::SubProtocolFactory::create().
| const std::string & mqtt::bridge::lib::Broker::getPassword | ( | ) | const |
Definition at line 134 of file Broker.cpp.
References password.
Referenced by mqtt::bridge::lib::Mqtt::Mqtt(), and mqtt::bridge::lib::Mqtt::onConnected().
| const std::string & mqtt::bridge::lib::Broker::getPrefix | ( | ) | const |
Definition at line 158 of file Broker.cpp.
References prefix.
Referenced by mqtt::bridge::lib::Mqtt::Mqtt(), and mqtt::bridge::lib::Bridge::publish().
| const std::string & mqtt::bridge::lib::Broker::getProtocol | ( | ) | const |
Definition at line 146 of file Broker.cpp.
References protocol.
Referenced by mqtt::bridge::SocketContextFactory::create(), and mqtt::mqttbridge::websocket::SubProtocolFactory::create().
| const std::string & mqtt::bridge::lib::Broker::getSessionStoreFileName | ( | ) | const |
Definition at line 98 of file Broker.cpp.
References sessionStoreFileName.
Referenced by mqtt::bridge::lib::Mqtt::Mqtt().
| const std::list< iot::mqtt::Topic > & mqtt::bridge::lib::Broker::getTopics | ( | ) | const |
Definition at line 166 of file Broker.cpp.
References topics.
Referenced by mqtt::bridge::SocketContextFactory::create(), mqtt::mqttbridge::websocket::SubProtocolFactory::create(), and mqtt::bridge::lib::Mqtt::onConnack().
| const std::string & mqtt::bridge::lib::Broker::getTransport | ( | ) | const |
Definition at line 154 of file Broker.cpp.
References transport.
Referenced by mqtt::bridge::SocketContextFactory::create(), and mqtt::mqttbridge::websocket::SubProtocolFactory::create().
| const std::string & mqtt::bridge::lib::Broker::getUsername | ( | ) | const |
Definition at line 130 of file Broker.cpp.
References username.
Referenced by mqtt::bridge::lib::Mqtt::Mqtt(), and mqtt::bridge::lib::Mqtt::onConnected().
| const std::string & mqtt::bridge::lib::Broker::getWillMessage | ( | ) | const |
Definition at line 118 of file Broker.cpp.
References willMessage.
Referenced by mqtt::bridge::lib::Mqtt::Mqtt(), and mqtt::bridge::lib::Mqtt::onConnected().
| uint8_t mqtt::bridge::lib::Broker::getWillQoS | ( | ) | const |
Definition at line 122 of file Broker.cpp.
References willQoS.
Referenced by mqtt::bridge::lib::Mqtt::Mqtt(), and mqtt::bridge::lib::Mqtt::onConnected().
| bool mqtt::bridge::lib::Broker::getWillRetain | ( | ) | const |
Definition at line 126 of file Broker.cpp.
References willRetain.
Referenced by mqtt::bridge::lib::Mqtt::Mqtt(), and mqtt::bridge::lib::Mqtt::onConnected().
| const std::string & mqtt::bridge::lib::Broker::getWillTopic | ( | ) | const |
Definition at line 114 of file Broker.cpp.
References willTopic.
Referenced by mqtt::bridge::lib::Mqtt::Mqtt(), and mqtt::bridge::lib::Mqtt::onConnected().
|
private |
Definition at line 124 of file Broker.h.
Referenced by Broker(), and getAddress().
|
private |
Definition at line 117 of file Broker.h.
Referenced by Broker(), and getBridge().
|
private |
Definition at line 128 of file Broker.h.
Referenced by Broker(), and getCleanSession().
|
private |
Definition at line 126 of file Broker.h.
Referenced by Broker(), and getClientId().
|
private |
Definition at line 138 of file Broker.h.
Referenced by Broker(), and getDisabled().
|
private |
Definition at line 122 of file Broker.h.
Referenced by Broker(), and getEncryption().
|
private |
|
private |
Definition at line 127 of file Broker.h.
Referenced by Broker(), and getKeepAlive().
|
private |
Definition at line 135 of file Broker.h.
Referenced by Broker(), and getLoopPrevention().
|
private |
Definition at line 134 of file Broker.h.
Referenced by Broker(), and getPassword().
|
private |
Definition at line 137 of file Broker.h.
Referenced by Broker(), and getPrefix().
|
private |
Definition at line 121 of file Broker.h.
Referenced by Broker(), and getProtocol().
|
private |
Definition at line 118 of file Broker.h.
Referenced by Broker(), and getSessionStoreFileName().
|
private |
Definition at line 140 of file Broker.h.
Referenced by Broker(), and getTopics().
|
private |
Definition at line 123 of file Broker.h.
Referenced by Broker(), and getTransport().
|
private |
Definition at line 133 of file Broker.h.
Referenced by Broker(), and getUsername().
|
private |
Definition at line 130 of file Broker.h.
Referenced by Broker(), and getWillMessage().
|
private |
Definition at line 131 of file Broker.h.
Referenced by Broker(), and getWillQoS().
|
private |
Definition at line 132 of file Broker.h.
Referenced by Broker(), and getWillRetain().
|
private |
Definition at line 129 of file Broker.h.
Referenced by Broker(), and getWillTopic().