Class LogsIngestionConfigManager
- java.lang.Object
-
- com.wavefront.agent.logsharvesting.LogsIngestionConfigManager
-
public class LogsIngestionConfigManager extends Object
Wrapper for aLogsIngestionConfig
that supports hot-loading and removal notifications.- Author:
- Mori Bellamy ([email protected])
-
-
Constructor Summary
Constructors Constructor Description LogsIngestionConfigManager(Supplier<LogsIngestionConfig> logsIngestionConfigSupplier, Consumer<MetricMatcher> removalListener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
forceConfigReload()
Forces the next call togetConfig()
to call the config supplier.LogsIngestionConfig
getConfig()
-
-
-
Field Detail
-
logger
protected static final Logger logger
-
-
Constructor Detail
-
LogsIngestionConfigManager
public LogsIngestionConfigManager(Supplier<LogsIngestionConfig> logsIngestionConfigSupplier, Consumer<MetricMatcher> removalListener) throws ConfigurationException
- Throws:
ConfigurationException
-
-
Method Detail
-
getConfig
public LogsIngestionConfig getConfig()
-
forceConfigReload
public void forceConfigReload()
Forces the next call togetConfig()
to call the config supplier.
-
-