Validate parameters before storing them

The runtime modification of servers, services and monitors now validates
the parameters before starting the update process. This guarantees that
the set of parameters is valid before it is processed.

After the validation, the parameters are now also stored in the list of
configuration parameters. This will simplify the serialization process by
removing the need to explicitly serialize all common object parameters.
This commit is contained in:
Markus Mäkelä
2018-08-15 23:32:53 +03:00
parent 3c20b47a8d
commit e2ace578d2
3 changed files with 55 additions and 104 deletions

View File

@ -59,10 +59,8 @@ public:
*
* @param name Name of the parameter to update
* @param value The new value of the parameter
*
* @return True if the parameter and its value were valid
*/
bool update_basic_parameter(const std::string& name, const std::string& value);
void update_basic_parameter(const std::string& name, const std::string& value);
/**
* Set the list of filters for this service