2 ==================================================================================
4 Copyright (c) 2018-2019 AT&T Intellectual Property.
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17 ==================================================================================
22 * Author: Ashwin Shridharan, Shraboni Jana
25 #ifndef SRC_XAPP_CONFIG_XAPP_CONFIG_HPP_
26 #define SRC_XAPP_CONFIG_XAPP_CONFIG_HPP_
32 #include <mdclog/mdclog.h>
34 #define MAX_SLEEP 86400
36 #define DEFAULT_A1_SCHEMA_FILE "/etc/xapp/a1-schema.json"
37 #define DEFAULT_XAPP_ID "hw-xapp-123"
38 #define DEFAULT_VES_SCHEMA_FILE "/etc/xapp/ves-schema.json"
39 #define DEFAULT_VES_COLLECTOR_URL "127.0.0.1:6350"
40 #define DEFAULT_VES_MEASUREMENT_INTERVAL 10
41 #define DEFAULT_PORT "4560"
42 #define DEFAULT_BUFFER "1024"
43 #define DEFAULT_GNODEB "GNB123"
44 #define DEFAULT_OPERATING_MODE "report"
45 #define DEFAULT_LOG_LEVEL MDCLOG_WARN
47 #define ASN_BUFF_MAX_SIZE 512
48 #define MAX_SUBSCRIPTION_ATTEMPTS 10
49 #define HELLOWORLD_POLICY_ID 00000
50 #define DEFAULT_THREADS 1
68 VES_MEASUREMENT_INTERVAL,
73 void loadDefaultSettings();
74 void loadCmdlineSettings(int, char **);
75 void loadEnvVarSettings();
77 string& operator[](const SettingName& theName);
79 typedef map<SettingName, std::string> SettingCollection;
80 SettingCollection theSettings;
86 #endif /* SRC_XAPP_CONFIG_XAPP_CONFIG_HPP_ */