Package com.wavefront.agent.preprocessor
Class PreprocessorConfigManager
- java.lang.Object
-
- com.wavefront.agent.preprocessor.PreprocessorConfigManager
-
public class PreprocessorConfigManager extends Object
Parses preprocessor rules (organized by listening port) Created by Vasily on 9/15/16.
-
-
Field Summary
Fields Modifier and Type Field Description Map<String,ReportableEntityPreprocessor>
userPreprocessors
-
Constructor Summary
Constructors Constructor Description PreprocessorConfigManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Supplier<ReportableEntityPreprocessor>
get(String handle)
ReportableEntityPreprocessor
getSystemPreprocessor(String key)
void
loadFile(String filename)
void
processRemoteRules(String rules)
void
setUpConfigFileMonitoring(String fileName, int fileCheckIntervalMillis)
Schedules periodic checks for config file modification timestamp and performs hot-reload
-
-
-
Field Detail
-
userPreprocessors
public Map<String,ReportableEntityPreprocessor> userPreprocessors
-
-
Method Detail
-
setUpConfigFileMonitoring
public void setUpConfigFileMonitoring(String fileName, int fileCheckIntervalMillis)
Schedules periodic checks for config file modification timestamp and performs hot-reload- Parameters:
fileName
- Path name of the file to be monitored.fileCheckIntervalMillis
- Timestamp check interval.
-
getSystemPreprocessor
public ReportableEntityPreprocessor getSystemPreprocessor(String key)
-
get
public Supplier<ReportableEntityPreprocessor> get(String handle)
-
loadFile
public void loadFile(String filename) throws FileNotFoundException
- Throws:
FileNotFoundException
-
-