Release SDL 1.4.0 packages
[ric-plt/sdl.git] / include / private / databaseconfiguration.hpp
index 5bf38a1..e8e5b8d 100644 (file)
    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,9 @@ namespace shareddatalayer
             UNKNOWN = 0,
             REDIS_STANDALONE,
             REDIS_CLUSTER,
-            REDIS_SENTINEL
+            REDIS_SENTINEL,
+            SDL_STANDALONE_CLUSTER,
+            SDL_SENTINEL_CLUSTER
         };
 
         virtual ~DatabaseConfiguration() = default;
@@ -44,8 +51,10 @@ 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<std::size_t>& addressIndex) const = 0;
         virtual DatabaseConfiguration::Addresses getDefaultServerAddresses() const = 0;
         virtual boost::optional<HostAndPort> getSentinelAddress() const = 0; // Optional return value, because empty HostAndPort can't be created.
+        virtual boost::optional<HostAndPort> getSentinelAddress(const boost::optional<std::size_t>& addressIndex) const = 0;
         virtual std::string getSentinelMasterName() const = 0;
         virtual bool isEmpty() const = 0;