MCPcopy Create free account
hub / github.com/Icinga/icinga2 / CommandEnvChangedHandler

Method CommandEnvChangedHandler

lib/icingadb/icingadb-objects.cpp:3139–3144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3137}
3138
3139void IcingaDB::CommandEnvChangedHandler(const Command::Ptr& command, const Dictionary::Ptr& oldValues, const Dictionary::Ptr& newValues) {
3140 const auto& cmdRedisKeys = GetCmdEnvArgKeys(command->GetReflectionType());
3141 for (const IcingaDB::Ptr& rw : ConfigType::GetObjectsByType<IcingaDB>()) {
3142 rw->SendCommandEnvChanged(command, cmdRedisKeys, oldValues, newValues);
3143 }
3144}
3145
3146void IcingaDB::CommandArgumentsChangedHandler(const Command::Ptr& command, const Dictionary::Ptr& oldValues, const Dictionary::Ptr& newValues) {
3147 const auto& cmdRedisKeys = GetCmdEnvArgKeys(command->GetReflectionType());

Callers

nothing calls this directly

Calls 2

SendCommandEnvChangedMethod · 0.80
GetReflectionTypeMethod · 0.45

Tested by

no test coverage detected