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

#include <file_watcher_kqueue.h>

Inheritance diagram for file_watcher::FileWatcherKqueue:
Collaboration diagram for file_watcher::FileWatcherKqueue:

Public Member Functions

 FileWatcherKqueue ()
 
virtual ~FileWatcherKqueue ()
 
- 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 Member Functions

void RemoveFilter (int fd)
 

Private Attributes

int kq_
 

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_kqueue.h.

Constructor & Destructor Documentation

file_watcher::FileWatcherKqueue::FileWatcherKqueue ( )

Definition at line 23 of file file_watcher_kqueue.cc.

file_watcher::FileWatcherKqueue::~FileWatcherKqueue ( )
virtual

Definition at line 25 of file file_watcher_kqueue.cc.

Member Function Documentation

void file_watcher::FileWatcherKqueue::RemoveFilter ( int  fd)
private

Definition at line 129 of file file_watcher_kqueue.cc.

Referenced by RunEventLoop().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Implements file_watcher::FileWatcher.

Definition at line 27 of file file_watcher_kqueue.cc.

Here is the call graph for this function:

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

Implements file_watcher::FileWatcher.

Definition at line 137 of file file_watcher_kqueue.cc.

Here is the call graph for this function:

Member Data Documentation

int file_watcher::FileWatcherKqueue::kq_
private

Definition at line 29 of file file_watcher_kqueue.h.

Referenced by RemoveFilter(), RunEventLoop(), and TryRegisterFilter().


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