Loading data from config NOTE: This method should only be called under the mutex
| 344 | // NOTE: This method should only be called under the mutex |
| 345 | // |
| 346 | void loadConfigData(const std::string& sMessageId) |
| 347 | { |
| 348 | // @Bogdanov FIXME: Possible deadlock if sendMessage is called in createCommand |
| 349 | std::string sPath("app.config.messageHandlers."); |
| 350 | sPath += sMessageId; |
| 351 | Sequence seqHandlers(getCatalogData(sPath, Sequence())); |
| 352 | |
| 353 | for (auto vSubscriber : seqHandlers) |
| 354 | m_mapSubscribers.insert({ {std::string(sMessageId), { |
| 355 | vSubscriber.get("subscriptionId", "default_config"), |
| 356 | createCommand(vSubscriber) |
| 357 | }}}); |
| 358 | |
| 359 | m_mapLoadCfg[sMessageId] = true; |
| 360 | } |
| 361 | |
| 362 | public: |
| 363 |
nothing calls this directly
no test coverage detected