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

Method Start

lib/checker/checkercomponent.cpp:61–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61void CheckerComponent::Start(bool runtimeCreated)
62{
63 ObjectImpl<CheckerComponent>::Start(runtimeCreated);
64
65 Log(LogInformation, "CheckerComponent")
66 << "'" << GetName() << "' started.";
67
68
69 m_Thread = std::thread([this]() { CheckThreadProc(); });
70
71 m_ResultTimer = Timer::Create();
72 m_ResultTimer->SetInterval(5);
73 m_ResultTimer->OnTimerExpired.connect([this](const Timer * const&) { ResultTimerHandler(); });
74 m_ResultTimer->Start();
75}
76
77void CheckerComponent::Stop(bool runtimeRemoved)
78{

Callers

nothing calls this directly

Calls 2

LogClass · 0.85
SetIntervalMethod · 0.80

Tested by

no test coverage detected