X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=include%2Fprivate%2Fconfigurationreader.hpp;h=9454ba8c2d12ed07e5541445862e040ca9b9064c;hb=faf9fc79e58fa4ace9b0ef317b741afb2c1a8abe;hp=6c175e7259f51b151d8f6427bbaf4eaf5e9f5307;hpb=ef2bf51d04aaf01fa0cabdcaf905b23423067662;p=ric-plt%2Fsdl.git diff --git a/include/private/configurationreader.hpp b/include/private/configurationreader.hpp index 6c175e7..9454ba8 100644 --- a/include/private/configurationreader.hpp +++ b/include/private/configurationreader.hpp @@ -14,11 +14,19 @@ limitations under the License. */ +/* + * This source code is part of the near-RT RIC (RAN Intelligent Controller) + * platform project (RICP). +*/ + #ifndef SHAREDDATALAYER_CONFIGURATIONREADER_HPP_ #define SHAREDDATALAYER_CONFIGURATIONREADER_HPP_ #define DB_HOST_ENV_VAR_NAME "DBAAS_SERVICE_HOST" #define DB_PORT_ENV_VAR_NAME "DBAAS_SERVICE_PORT" +#define SENTINEL_PORT_ENV_VAR_NAME "DBAAS_SERVICE_SENTINEL_PORT" +#define SENTINEL_MASTER_NAME_ENV_VAR_NAME "DBAAS_MASTER_NAME" +#define DB_CLUSTER_ADDR_LIST_ENV_VAR_NAME "DBAAS_CLUSTER_ADDR_LIST" #include #include @@ -61,6 +69,12 @@ namespace shareddatalayer std::string dbHostEnvVariableValue; const std::string dbPortEnvVariableName; std::string dbPortEnvVariableValue; + const std::string sentinelPortEnvVariableName; + std::string sentinelPortEnvVariableValue; + const std::string sentinelMasterNameEnvVariableName; + std::string sentinelMasterNameEnvVariableValue; + const std::string dbClusterAddrListEnvVariableName; + std::string dbClusterAddrListEnvVariableValue; boost::optional jsonDatabaseConfiguration; std::string sourceForDatabaseConfiguration; std::unordered_map> jsonNamespaceConfigurations;