X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=include%2Fprivate%2Fdatabaseconfiguration.hpp;h=e8e5b8df8eede28b61349db3f43fb9ff493398e8;hb=69b0a71f5fe8825fa45ee9502a41fd8b465c44e0;hp=56274cb9890f4dc37e0a3a74656b010ad7e035fd;hpb=ece67088ea6c4f67b9d0db74477a9d5c614d7763;p=ric-plt%2Fsdl.git diff --git a/include/private/databaseconfiguration.hpp b/include/private/databaseconfiguration.hpp index 56274cb..e8e5b8d 100644 --- a/include/private/databaseconfiguration.hpp +++ b/include/private/databaseconfiguration.hpp @@ -40,7 +40,8 @@ namespace shareddatalayer REDIS_STANDALONE, REDIS_CLUSTER, REDIS_SENTINEL, - SDL_CLUSTER + SDL_STANDALONE_CLUSTER, + SDL_SENTINEL_CLUSTER }; virtual ~DatabaseConfiguration() = default; @@ -50,6 +51,7 @@ namespace shareddatalayer virtual void checkAndApplySentinelMasterName(const std::string& name) = 0; virtual DatabaseConfiguration::DbType getDbType() const = 0; virtual DatabaseConfiguration::Addresses getServerAddresses() const = 0; + virtual DatabaseConfiguration::Addresses getServerAddresses(const boost::optional& addressIndex) 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;