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

Method OnConfigLoaded

lib/perfdata/graphitewriter.cpp:35–49  ·  view source on GitHub ↗

* Enable HA capabilities once the config object is loaded. */

Source from the content-addressed store, hash-verified

33 * Enable HA capabilities once the config object is loaded.
34 */
35void GraphiteWriter::OnConfigLoaded()
36{
37 ObjectImpl<GraphiteWriter>::OnConfigLoaded();
38
39 m_WorkQueue.SetName("GraphiteWriter, " + GetName());
40
41 if (!GetEnableHa()) {
42 Log(LogDebug, "GraphiteWriter")
43 << "HA functionality disabled. Won't pause connection: " << GetName();
44
45 SetHAMode(HARunEverywhere);
46 } else {
47 SetHAMode(HARunOnce);
48 }
49}
50
51/**
52 * Feature stats interface

Callers

nothing calls this directly

Calls 2

LogClass · 0.85
SetNameMethod · 0.45

Tested by

no test coverage detected