public class FileConfigurationMonitor extends Object implements ConfigurationMonitor
Constructor and Description |
---|
FileConfigurationMonitor(Reconfigurable reconfigurable,
File file,
List<ConfigurationListener> listeners,
int intervalSeconds)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
checkConfiguration()
Called to determine if the configuration has changed.
|
ReliabilityStrategy |
getReliabilityStrategy(LoggerConfig loggerConfig)
Determines how to log events reliably during or after a configuration change.
|
public FileConfigurationMonitor(Reconfigurable reconfigurable, File file, List<ConfigurationListener> listeners, int intervalSeconds)
reconfigurable
- The Configuration that can be reconfigured.file
- The File to monitor.listeners
- The List of ConfigurationListeners to notify upon a change.intervalSeconds
- The monitor interval in seconds. The minimum interval is 5 seconds.public void checkConfiguration()
checkConfiguration
in interface ConfigurationMonitor
public ReliabilityStrategy getReliabilityStrategy(LoggerConfig loggerConfig)
ConfigurationMonitor
getReliabilityStrategy
in interface ConfigurationMonitor
loggerConfig
- the LoggerConfig the resulting ReliabilityStrategy
is associated withCopyright © 1999-2021 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.