IBR-DTN
1.0.0
|
#include <FileConvergenceLayer.h>
Public Member Functions | |
FileConvergenceLayer () | |
virtual | ~FileConvergenceLayer () |
void | raiseEvent (const dtn::core::NodeEvent &evt) throw () |
void | raiseEvent (const dtn::core::TimeEvent &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 |
![]() | |
virtual | ~ConvergenceLayer ()=0 |
virtual void | resetStats () |
virtual void | getStats (ConvergenceLayer::stats_data &data) const |
![]() | |
IndependentComponent () | |
virtual | ~IndependentComponent () |
virtual void | initialize () throw () |
virtual void | startup () throw () |
virtual void | terminate () throw () |
![]() | |
virtual | ~Component ()=0 |
![]() | |
virtual | ~EventReceiver () |
![]() | |
virtual | ~EventReceiver () |
Protected Member Functions | |
void | componentUp () throw () |
void | componentRun () throw () |
void | componentDown () throw () |
void | __cancellation () throw () |
![]() | |
void | run () throw () |
Additional Inherited Members | |
![]() | |
typedef std::pair< string, string > | stats_pair |
typedef std::map< string, string > | stats_data |
Definition at line 40 of file FileConvergenceLayer.h.
dtn::net::FileConvergenceLayer::FileConvergenceLayer | ( | ) |
Definition at line 60 of file FileConvergenceLayer.cpp.
|
virtual |
Definition at line 64 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 82 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 75 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 87 of file FileConvergenceLayer.cpp.
References dtn::data::MetaBundle::create(), dtn::data::PrimaryBlock::destination, dtn::core::BundleCore::filter(), dtn::storage::BundleStorage::get(), dtn::core::BundleCore::getInstance(), dtn::core::BundleCore::getStorage(), dtn::data::EID::isApplication(), dtn::core::BundleFilter::OUTPUT, dtn::net::TransferAbortedEvent::REASON_BUNDLE_DELETED, dtn::net::TransferAbortedEvent::REASON_REFUSED, dtn::net::TransferAbortedEvent::REASON_REFUSED_BY_FILTER, dtn::data::Bundle::remove(), dtn::core::FilterContext::setBundle(), dtn::core::FilterContext::setPeer(), and dtn::core::FilterContext::setProtocol().
|
protectedvirtual |
Is called in preparation of the component. Before componentRun() is called.
Implements dtn::daemon::IndependentComponent.
Definition at line 68 of file FileConvergenceLayer.cpp.
References dtn::core::EventDispatcher< E >::add().
|
virtual |
Implements dtn::net::ConvergenceLayer.
Definition at line 251 of file FileConvergenceLayer.cpp.
References dtn::core::Node::CONN_FILE.
|
virtual |
Return an identifier for this component
Implements dtn::daemon::Component.
Definition at line 246 of file FileConvergenceLayer.cpp.
|
virtual |
This method opens a connection proactive.
n |
Reimplemented from dtn::net::ConvergenceLayer.
Definition at line 256 of file FileConvergenceLayer.cpp.
|
virtual |
Implements dtn::net::ConvergenceLayer.
Definition at line 404 of file FileConvergenceLayer.cpp.
|
virtual |
Implements dtn::core::EventReceiver< dtn::core::NodeEvent >.
Definition at line 225 of file FileConvergenceLayer.cpp.
References dtn::core::Node::CONN_FILE, dtn::core::Node::has(), and dtn::core::NODE_AVAILABLE.
|
virtual |
Implements dtn::core::EventReceiver< dtn::core::TimeEvent >.
Definition at line 237 of file FileConvergenceLayer.cpp.
References dtn::core::TIME_SECOND_TICK.