* Enable HA capabilities once the config object is loaded. */
| 33 | * Enable HA capabilities once the config object is loaded. |
| 34 | */ |
| 35 | void 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 |