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

Method Activate

lib/base/configobject.cpp:369–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367}
368
369void ConfigObject::Activate(bool runtimeCreated, const Value& cookie)
370{
371 CONTEXT("Activating object '" << GetName() << "' of type '" << GetReflectionType()->GetName() << "'");
372
373 {
374 ObjectLock olock(this);
375
376 Start(runtimeCreated);
377
378 ASSERT(GetStartCalled());
379
380 if (GetHAMode() == HARunEverywhere)
381 SetAuthority(true);
382 }
383
384 NotifyActive(cookie);
385}
386
387void ConfigObject::Stop(bool runtimeRemoved)
388{

Callers 4

ActivateItemsMethod · 0.80
TestLoggerFixtureMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80

Calls 1

GetNameMethod · 0.45

Tested by 1

TestLoggerFixtureMethod · 0.64