IBR-DTNSuite
0.12
|
#include <FileConvergenceLayer.h>
Public Member Functions | |
FileConvergenceLayer () | |
virtual | ~FileConvergenceLayer () |
void | raiseEvent (const dtn::core::Event *evt) throw () |
dtn::core::Node::Protocol | getDiscoveryProtocol () const |
void | open (const dtn::core::Node &) |
void | queue (const dtn::core::Node &n, const dtn::net::BundleTransfer &job) |
const std::string | getName () const |
Public Member Functions inherited from dtn::net::ConvergenceLayer | |
virtual | ~ConvergenceLayer ()=0 |
virtual void | resetStats () |
virtual void | getStats (ConvergenceLayer::stats_data &data) const |
Public Member Functions inherited from dtn::daemon::IndependentComponent | |
IndependentComponent () | |
virtual | ~IndependentComponent () |
virtual void | initialize () throw () |
virtual void | startup () throw () |
virtual void | terminate () throw () |
Public Member Functions inherited from dtn::daemon::Component | |
virtual | ~Component ()=0 |
Public Member Functions inherited from dtn::core::EventReceiver | |
virtual | ~EventReceiver ()=0 |
Protected Member Functions | |
void | componentUp () throw () |
void | componentRun () throw () |
void | componentDown () throw () |
void | __cancellation () throw () |
Protected Member Functions inherited from dtn::daemon::IndependentComponent | |
void | run () throw () |
Protected Member Functions inherited from ibrcommon::JoinableThread | |
virtual | ~JoinableThread ()=0 |
void | join (void) throw (ThreadException) |
bool | isRunning (void) |
void | start (int priority=0) throw (ThreadException) |
void | stop () throw () |
JoinableThread (size_t size=DEFAULT_STACKSIZE) | |
Additional Inherited Members | |
Public Types inherited from dtn::net::ConvergenceLayer | |
typedef std::pair< string, string > | stats_pair |
typedef std::map< string, string > | stats_data |
Definition at line 38 of file FileConvergenceLayer.h.
dtn::net::FileConvergenceLayer::FileConvergenceLayer | ( | ) |
Definition at line 62 of file FileConvergenceLayer.cpp.
|
virtual |
Definition at line 66 of file FileConvergenceLayer.cpp.
|
protectedvirtual |
This method is called after componentDown() and should should guarantee that blocking calls in componentRun() will unblock.
Implements dtn::daemon::IndependentComponent.
Definition at line 84 of file FileConvergenceLayer.cpp.
|
protectedvirtual |
This method is called if the component should stop. Clean-up code should be inserted here.
Implements dtn::daemon::IndependentComponent.
Definition at line 77 of file FileConvergenceLayer.cpp.
References dtn::core::EventDispatcher< E >::remove().
|
protectedvirtual |
This is the run method. The component should loop in there until componentDown() or __cancellation() is called.
Implements dtn::daemon::IndependentComponent.
Definition at line 89 of file FileConvergenceLayer.cpp.
References dtn::data::MetaBundle::create(), dtn::data::PrimaryBlock::destination, ibrcommon::LogLevel::error, dtn::storage::BundleStorage::get(), dtn::core::BundleCore::getInstance(), ibrcommon::File::getPath(), dtn::core::BundleCore::getStorage(), IBRCOMMON_LOGGER_ENDL, IBRCOMMON_LOGGER_TAG, ibrcommon::LogLevel::info, dtn::data::EID::isApplication(), dtn::net::TransferAbortedEvent::REASON_BUNDLE_DELETED, dtn::net::TransferAbortedEvent::REASON_REFUSED, and ibrcommon::File::remove().
|
protectedvirtual |
Is called in preparation of the component. Before componentRun() is called.
Implements dtn::daemon::IndependentComponent.
Definition at line 70 of file FileConvergenceLayer.cpp.
References dtn::core::EventDispatcher< E >::add().
|
virtual |
Implements dtn::net::ConvergenceLayer.
Definition at line 233 of file FileConvergenceLayer.cpp.
References dtn::core::Node::CONN_FILE.
|
virtual |
Return an identifier for this component
Implements dtn::daemon::Component.
Definition at line 228 of file FileConvergenceLayer.cpp.
|
virtual |
This method opens a connection proactive.
n |
Reimplemented from dtn::net::ConvergenceLayer.
Definition at line 238 of file FileConvergenceLayer.cpp.
|
virtual |
Implements dtn::net::ConvergenceLayer.
Definition at line 374 of file FileConvergenceLayer.cpp.
|
virtual |
Implements dtn::core::EventReceiver.
Definition at line 202 of file FileConvergenceLayer.cpp.
References dtn::core::Node::CONN_FILE, dtn::core::TimeEvent::getAction(), dtn::core::NodeEvent::getAction(), dtn::core::NodeEvent::getNode(), dtn::core::TimeEvent::getTimestamp(), dtn::core::Node::has(), dtn::core::NODE_AVAILABLE, and dtn::core::TIME_SECOND_TICK.