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 * > 
HandlerMap
 
- 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_inotify.cc.

file_watcher::FileWatcherInotify::~FileWatcherInotify ( )
virtual

Definition at line 26 of file file_watcher_inotify.cc.

Member Function Documentation

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

Implements file_watcher::FileWatcher.

Definition at line 28 of file file_watcher_inotify.cc.

Here is the call graph for this function:

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

Implements file_watcher::FileWatcher.

Definition at line 148 of file file_watcher_inotify.cc.

Member Data Documentation

int file_watcher::FileWatcherInotify::inotify_fd_
private

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: