X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=include%2Fprivate%2Fdatabaseconfigurationimpl.hpp;h=40447580be233e5c87b512a00cee6e0ad8960884;hb=refs%2Fchanges%2F35%2F12835%2F1;hp=64b3c2198ccfb83a1fd8ad5b0a5dcb093d431571;hpb=2dcf940b7a815456af601cdc6fd8ebbc57bda161;p=ric-plt%2Fsdl.git diff --git a/include/private/databaseconfigurationimpl.hpp b/include/private/databaseconfigurationimpl.hpp index 64b3c21..4044758 100644 --- a/include/private/databaseconfigurationimpl.hpp +++ b/include/private/databaseconfigurationimpl.hpp @@ -1,5 +1,5 @@ /* - Copyright (c) 2018-2019 Nokia. + Copyright (c) 2018-2022 Nokia. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,11 @@ limitations under the License. */ +/* + * This source code is part of the near-RT RIC (RAN Intelligent Controller) + * platform project (RICP). +*/ + #ifndef SHAREDDATALAYER_DATABASECONFIGURATIONIMPL_HPP_ #define SHAREDDATALAYER_DATABASECONFIGURATIONIMPL_HPP_ @@ -32,27 +37,29 @@ namespace shareddatalayer void checkAndApplyServerAddress(const std::string& address) override; - void checkAndApplySentinelAddress(const std::string& address) override; + void checkAndApplySentinelPorts(const std::string& sentinelPortsEnvStr) override; - void checkAndApplySentinelMasterName(const std::string& name) override; + void checkAndApplySentinelMasterNames(const std::string& sentinelMasterNamesEnvStr) override; DatabaseConfiguration::DbType getDbType() const override; DatabaseConfigurationImpl::Addresses getServerAddresses() const override; + DatabaseConfigurationImpl::Addresses getServerAddresses(const boost::optional& addressIndex) const override; + DatabaseConfiguration::Addresses getDefaultServerAddresses() const override; - boost::optional getSentinelAddress() const override; + boost::optional getSentinelAddress(const boost::optional& addressIndex) const override; - std::string getSentinelMasterName() const override; + std::string getSentinelMasterName(const boost::optional& addressIndex) const override; bool isEmpty() const override; private: DbType dbType; Addresses serverAddresses; - boost::optional sentinelAddress; - std::string sentinelMasterName; + SentinelPorts sentinelPorts; + SentinelMasterNames sentinelMasterNames; }; }