CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
file_watcher::FileWatcherInotify Class Reference

#include <file_watcher_inotify.h>

Inheritance diagram for file_watcher::FileWatcherInotify:
Collaboration diagram for file_watcher::FileWatcherInotify:

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 * > 
- Static Public Member Functions inherited from file_watcher::FileWatcher
static FileWatcherCreate ()
- Protected Attributes inherited from file_watcher::FileWatcher
std::map< int, WatchRecordwatch_records_
- Static Protected Attributes inherited from file_watcher::FileWatcher
static const unsigned kInitialDelay = 1000
static const unsigned kMaxDelay = 10000
static const unsigned kResetDelay = 50000

Detailed Description

Definition at line 15 of file file_watcher_inotify.h.

Constructor & Destructor Documentation

file_watcher::FileWatcherInotify::FileWatcherInotify ( )

Definition at line 24 of file

file_watcher::FileWatcherInotify::~FileWatcherInotify ( )

Definition at line 26 of file

Member Function Documentation

bool file_watcher::FileWatcherInotify::RunEventLoop ( const FileWatcher::HandlerMap handler,
int  read_pipe,
int  write_pipe 

Implements file_watcher::FileWatcher.

Definition at line 28 of file

Here is the call graph for this function:

int file_watcher::FileWatcherInotify::TryRegisterFilter ( const std::string &  file_path)

Implements file_watcher::FileWatcher.

Definition at line 148 of file

Member Data Documentation

int file_watcher::FileWatcherInotify::inotify_fd_

Definition at line 27 of file file_watcher_inotify.h.

Referenced by RunEventLoop(), and TryRegisterFilter().

The documentation for this class was generated from the following files: