IBR-DTNSuite
0.8
|
#include <FileMonitor.h>
Public Member Functions | |
FileMonitor () | |
virtual | ~FileMonitor () |
void | watch (const ibrcommon::File &watch) |
const std::string | getName () const |
Protected Member Functions | |
void | componentUp () |
void | componentRun () |
void | componentDown () |
void | __cancellation () |
Definition at line 21 of file FileMonitor.h.
Definition at line 23 of file FileMonitor.cpp.
dtn::net::FileMonitor::~FileMonitor | ( | ) | [virtual] |
Definition at line 31 of file FileMonitor.cpp.
References ibrcommon::JoinableThread::join().
void dtn::net::FileMonitor::__cancellation | ( | ) | [protected, virtual] |
Implements dtn::daemon::IndependentComponent.
Definition at line 97 of file FileMonitor.cpp.
References ibrcommon::vsocket::close().
void dtn::net::FileMonitor::componentDown | ( | ) | [protected, virtual] |
Implements dtn::daemon::IndependentComponent.
Definition at line 85 of file FileMonitor.cpp.
void dtn::net::FileMonitor::componentRun | ( | ) | [protected, virtual] |
Implements dtn::daemon::IndependentComponent.
Definition at line 56 of file FileMonitor.cpp.
References ibrcommon::vsocket::select(), and ibrcommon::Thread::sleep().
void dtn::net::FileMonitor::componentUp | ( | ) | [protected, virtual] |
Implements dtn::daemon::IndependentComponent.
Definition at line 49 of file FileMonitor.cpp.
References ibrcommon::vsocket::add().
const std::string dtn::net::FileMonitor::getName | ( | ) | const [virtual] |
Return an identifier for this component
Implements dtn::daemon::Component.
Definition at line 189 of file FileMonitor.cpp.
void dtn::net::FileMonitor::watch | ( | const ibrcommon::File & | watch | ) |
Definition at line 36 of file FileMonitor.cpp.
References ibrcommon::File::getPath(), IBRCOMMON_LOGGER_DEBUG, IBRCOMMON_LOGGER_ENDL, and ibrcommon::File::isDirectory().
Referenced by createConvergenceLayers().