CernVM-FS
2.12.0
|
#include <file_watcher_inotify.h>
Public Member Functions | |
FileWatcherInotify () | |
virtual | ~FileWatcherInotify () |
Public Member Functions inherited from file_watcher::FileWatcher | |
FileWatcher () | |
virtual | ~FileWatcher () |
void | RegisterHandler (const std::string &file_path, EventHandler *handler) |
bool | Spawn () |
void | Stop () |
Protected Member Functions | |
virtual bool | RunEventLoop (const FileWatcher::HandlerMap &handler, int read_pipe, int write_pipe) |
virtual int | TryRegisterFilter (const std::string &file_path) |
Protected Member Functions inherited from file_watcher::FileWatcher | |
void | RegisterFilter (const std::string &file_path, EventHandler *handler) |
Private Attributes | |
int | inotify_fd_ |
Additional Inherited Members | |
Public Types inherited from file_watcher::FileWatcher | |
typedef std::map< std::string, EventHandler * > | HandlerMap |
Static Public Member Functions inherited from file_watcher::FileWatcher | |
static FileWatcher * | Create () |
Protected Attributes inherited from file_watcher::FileWatcher | |
std::map< int, WatchRecord > | watch_records_ |
Static Protected Attributes inherited from file_watcher::FileWatcher | |
static const unsigned | kInitialDelay = 1000 |
static const unsigned | kMaxDelay = 10000 |
static const unsigned | kResetDelay = 50000 |
Definition at line 15 of file file_watcher_inotify.h.
file_watcher::FileWatcherInotify::FileWatcherInotify | ( | ) |
Definition at line 24 of file file_watcher_inotify.cc.
|
virtual |
Definition at line 26 of file file_watcher_inotify.cc.
|
protectedvirtual |
Implements file_watcher::FileWatcher.
Definition at line 28 of file file_watcher_inotify.cc.
|
protectedvirtual |
Implements file_watcher::FileWatcher.
Definition at line 148 of file file_watcher_inotify.cc.
|
private |
Definition at line 27 of file file_watcher_inotify.h.
Referenced by RunEventLoop(), and TryRegisterFilter().