#include <FileConvergenceLayer.h>
Inheritance diagram for dtn::FileConvergenceLayer::Scanner:
Definition at line 72 of file FileConvergenceLayer.h.
Public Member Functions | |
Scanner (int secs_per_scan, const std::string &dir) | |
Constructor. | |
void | stop () |
Set the flag to ask it to stop next loop. | |
virtual void | serialize (oasys::SerializableObject *) |
Virtual from SerializableObject. | |
Protected Member Functions | |
void | run () |
Main thread function. | |
Protected Attributes | |
int | secs_per_scan_ |
scan interval | |
std::string | dir_ |
directory to scan for bundles. | |
bool | run_ |
keep running? |
dtn::FileConvergenceLayer::Scanner::Scanner | ( | int | secs_per_scan, | |
const std::string & | dir | |||
) |
Constructor.
Definition at line 288 of file FileConvergenceLayer.cc.
References oasys::Thread::DELETE_ON_EXIT, and oasys::Thread::set_flag().
void dtn::FileConvergenceLayer::Scanner::stop | ( | ) |
Set the flag to ask it to stop next loop.
Definition at line 434 of file FileConvergenceLayer.cc.
References run_.
Referenced by dtn::FileConvergenceLayer::interface_down().
virtual void dtn::FileConvergenceLayer::Scanner::serialize | ( | oasys::SerializableObject * | ) | [inline, virtual] |
void dtn::FileConvergenceLayer::Scanner::run | ( | ) | [protected, virtual] |
Main thread function.
Implements oasys::Thread.
Definition at line 304 of file FileConvergenceLayer.cc.
References log_info, and NOTIMPLEMENTED.
int dtn::FileConvergenceLayer::Scanner::secs_per_scan_ [protected] |
std::string dtn::FileConvergenceLayer::Scanner::dir_ [protected] |
bool dtn::FileConvergenceLayer::Scanner::run_ [protected] |