Kea 3.3.3
ha_config_parser.h
Go to the documentation of this file.
1// Copyright (C) 2018-2026 Internet Systems Consortium, Inc. ("ISC")
2//
3// This Source Code Form is subject to the terms of the Mozilla Public
4// License, v. 2.0. If a copy of the MPL was not distributed with this
5// file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7#ifndef HA_CONFIG_PARSER_H
8#define HA_CONFIG_PARSER_H
9
10#include <cc/data.h>
11#include <cc/simple_parser.h>
13
14#include <string>
15
16namespace isc {
17namespace ha {
18
21public:
22
29
30private:
31
38 static void parseAll(const HAConfigMapperPtr& config_storage,
40
50 static void parseOne(const HAConfigMapperPtr& config_storage,
52
59 template<typename T>
60 static T getAndValidateInteger(const data::ConstElementPtr& config,
61 const std::string& parameter_name);
62
71 static void logConfigStatus(const HAConfigMapperPtr& config_storage);
72
77 static void validateRelationships(const HAConfigMapperPtr& config_storage);
78};
79
80} // end of namespace isc::ha
81} // end of namespace isc
82
83#endif
Configuration parser for High Availability.
static HAConfigMapperPtr parse(const data::ConstElementPtr &config)
Parses HA configuration.
boost::shared_ptr< const Element > ConstElementPtr
Definition data.h:30
boost::shared_ptr< Element > ElementPtr
Definition data.h:29
boost::shared_ptr< HAConfigMapper > HAConfigMapperPtr
Pointer to an object mapping HAConfig to relationships.
Definition ha_config.h:45
Defines the logger used by the top-level component of kea-lfc.