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

Method Deactivate

lib/base/configobject.cpp:396–416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

394}
395
396void ConfigObject::Deactivate(bool runtimeRemoved, const Value& cookie)
397{
398 CONTEXT("Deactivating object '" << GetName() << "' of type '" << GetReflectionType()->GetName() << "'");
399
400 {
401 ObjectLock olock(this);
402
403 if (!IsActive())
404 return;
405
406 SetActive(false, true);
407
408 SetAuthority(false);
409
410 Stop(runtimeRemoved);
411 }
412
413 ASSERT(GetStopCalled());
414
415 NotifyActive(cookie);
416}
417
418void ConfigObject::OnConfigLoaded()
419{

Callers 3

DeleteObjectHelperMethod · 0.80
StopObjectsMethod · 0.80
~TestLoggerFixtureMethod · 0.80

Calls 1

GetNameMethod · 0.45

Tested by 1

~TestLoggerFixtureMethod · 0.64