Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.logging.log4j.core.config
Class FileConfigurationMonitor

    java.lang.Object
      org.apache.logging.log4j.core.config.FileConfigurationMonitor

All Implemented Interfaces:
  ConfigurationMonitor

    public class FileConfigurationMonitor

extends Object
implements ConfigurationMonitor

Configuration monitor that periodically checks the timestamp of the configuration file and calls the ConfigurationListeners when an update occurs.

Constructor Summary
`FileConfigurationMonitor(Reconfigurable reconfigurable, File file, List<ConfigurationListener> listeners, int intervalSeconds)` Constructor.

Method Summary
`void` | `checkConfiguration()` Called to determine if the configuration has changed.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### FileConfigurationMonitor

    public FileConfigurationMonitor(Reconfigurable reconfigurable,
                                    File file,
                                    List<ConfigurationListener> listeners,
                                    int intervalSeconds)

  Constructor.

  Parameters:
    `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.

Method Detail

### checkConfiguration

    public void checkConfiguration()

  Called to determine if the configuration has changed.

  Specified by:
    `checkConfiguration` in interface `ConfigurationMonitor`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 1999-2015 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.