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

Method OnConfigLoaded

lib/perfdata/elasticsearchwriter.cpp:45–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43REGISTER_STATSFUNCTION(ElasticsearchWriter, &ElasticsearchWriter::StatsFunc);
44
45void ElasticsearchWriter::OnConfigLoaded()
46{
47 ObjectImpl<ElasticsearchWriter>::OnConfigLoaded();
48
49 m_WorkQueue.SetName("ElasticsearchWriter, " + GetName());
50
51 if (!GetEnableHa()) {
52 Log(LogDebug, "ElasticsearchWriter")
53 << "HA functionality disabled. Won't pause connection: " << GetName();
54
55 SetHAMode(HARunEverywhere);
56 } else {
57 SetHAMode(HARunOnce);
58 }
59}
60
61void ElasticsearchWriter::OnAllConfigLoaded()
62{

Callers

nothing calls this directly

Calls 2

LogClass · 0.85
SetNameMethod · 0.45

Tested by

no test coverage detected