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

Method ReachabilityChangeHandler

lib/icingadb/icingadb-objects.cpp:2933–2943  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2931}
2932
2933void IcingaDB::ReachabilityChangeHandler(const std::set<Checkable::Ptr>& children)
2934{
2935 for (const IcingaDB::Ptr& rw : ConfigType::GetObjectsByType<IcingaDB>()) {
2936 for (auto& checkable : children) {
2937 rw->EnqueueConfigObject(checkable, icingadb::task_queue::FullState);
2938 for (const auto& dependencyGroup : checkable->GetDependencyGroups()) {
2939 rw->EnqueueDependencyGroupStateUpdate(dependencyGroup);
2940 }
2941 }
2942 }
2943}
2944
2945void IcingaDB::VersionChangedHandler(const ConfigObject::Ptr& object)
2946{

Callers

nothing calls this directly

Calls 3

EnqueueConfigObjectMethod · 0.80
GetDependencyGroupsMethod · 0.80

Tested by

no test coverage detected