X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=include%2Fprivate%2Fdatabaseconfiguration.hpp;h=56274cb9890f4dc37e0a3a74656b010ad7e035fd;hb=ece67088ea6c4f67b9d0db74477a9d5c614d7763;hp=5bf38a15493b765b06a05f0bf863e7dddd9988f1;hpb=2dcf940b7a815456af601cdc6fd8ebbc57bda161;p=ric-plt%2Fsdl.git diff --git a/include/private/databaseconfiguration.hpp b/include/private/databaseconfiguration.hpp index 5bf38a1..56274cb 100644 --- a/include/private/databaseconfiguration.hpp +++ b/include/private/databaseconfiguration.hpp @@ -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_DATABASECONFIGURATION_HPP_ #define SHAREDDATALAYER_DATABASECONFIGURATION_HPP_ @@ -34,7 +39,8 @@ namespace shareddatalayer UNKNOWN = 0, REDIS_STANDALONE, REDIS_CLUSTER, - REDIS_SENTINEL + REDIS_SENTINEL, + SDL_CLUSTER }; virtual ~DatabaseConfiguration() = default; @@ -46,6 +52,7 @@ namespace shareddatalayer virtual DatabaseConfiguration::Addresses getServerAddresses() const = 0; virtual DatabaseConfiguration::Addresses getDefaultServerAddresses() const = 0; virtual boost::optional getSentinelAddress() const = 0; // Optional return value, because empty HostAndPort can't be created. + virtual boost::optional getSentinelAddress(const boost::optional& addressIndex) const = 0; virtual std::string getSentinelMasterName() const = 0; virtual bool isEmpty() const = 0;