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

Method Stop

lib/icinga/downtime.cpp:150–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150void Downtime::Stop(bool runtimeRemoved)
151{
152 {
153 std::unique_lock<std::mutex> lock (l_DowntimeMutex);
154
155 l_LegacyDowntimesCache.erase(GetLegacyId());
156 }
157
158 GetCheckable()->UnregisterDowntime(this);
159
160 Downtime::Ptr parent = GetByName(GetParent());
161
162 if (parent)
163 parent->UnregisterChild(this);
164
165 if (runtimeRemoved)
166 OnDowntimeRemoved(this);
167
168 ObjectImpl<Downtime>::Stop(runtimeRemoved);
169}
170
171void Downtime::Pause()
172{

Callers 1

PauseMethod · 0.45

Calls 3

UnregisterDowntimeMethod · 0.80
UnregisterChildMethod · 0.80
eraseMethod · 0.45

Tested by

no test coverage detected