A monitor that will periodically check if a nominated file has changed and call the doOnChange virtual method if it has.
More...
#include <filewatchdog.h>
|
| static long | DEFAULT_DELAY |
| | The default delay between every file modification check, set to 60 seconds.
|
A monitor that will periodically check if a nominated file has changed and call the doOnChange virtual method if it has.
◆ ~FileWatchdog()
| virtual log4cxx::helpers::FileWatchdog::~FileWatchdog |
( |
| ) |
|
|
virtual |
◆ FileWatchdog()
| log4cxx::helpers::FileWatchdog::FileWatchdog |
( |
const File & | filename, |
|
|
const spi::ConfiguratorPtr & | processor = {}, |
|
|
const spi::LoggerRepositoryPtr & | target = {} ) |
|
protected |
Monitors filename and optionally uses processor to configure target.
◆ checkAndConfigure()
| void log4cxx::helpers::FileWatchdog::checkAndConfigure |
( |
| ) |
|
|
protected |
◆ doOnChange()
| virtual void log4cxx::helpers::FileWatchdog::doOnChange |
( |
| ) |
|
|
protectedvirtual |
◆ file()
| const File & log4cxx::helpers::FileWatchdog::file |
( |
| ) |
|
|
protected |
◆ getSharedPtr()
| FileWatchdogPtr log4cxx::helpers::FileWatchdog::getSharedPtr |
( |
| ) |
|
A shareable pointer to this.
◆ getStatus()
◆ is_active()
| bool log4cxx::helpers::FileWatchdog::is_active |
( |
| ) |
|
Is the task that periodically checks for a file change running?
◆ setDelay()
| void log4cxx::helpers::FileWatchdog::setDelay |
( |
long | millisecondDelay | ) |
|
Wait millisecondDelay between each check for file changes.
◆ setFile()
| void log4cxx::helpers::FileWatchdog::setFile |
( |
const File & | filename | ) |
|
Change the watched file to filename.
◆ start()
| void log4cxx::helpers::FileWatchdog::start |
( |
| ) |
|
◆ startWatching()
Call start() on a monitor of filename that uses processor to configure target.
◆ stop()
| void log4cxx::helpers::FileWatchdog::stop |
( |
| ) |
|
Stop the task that periodically checks for a file change.
◆ stopAll()
| void log4cxx::helpers::FileWatchdog::stopAll |
( |
| ) |
|
|
static |
Stop all tasks that periodically check for a file change.
◆ DEFAULT_DELAY
| long log4cxx::helpers::FileWatchdog::DEFAULT_DELAY |
|
static |
The default delay between every file modification check, set to 60 seconds.
The documentation for this class was generated from the following file: