|
IBR-DTNSuite
0.10
|
#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 const stats_map & | getStats () |
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::net::ConvergenceLayer | |
| virtual void | addStats (const std::string &tag, const size_t value) |
| virtual void | setStats (const std::string &tag, const size_t value) |
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::map< std::string, size_t > | stats_map |
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.
References ibrcommon::Queue< T >::abort().

|
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::BundleList::add(), dtn::data::EID::add(), dtn::data::PrimaryBlock::destination, dtn::data::BundleList::end(), ibrcommon::LogLevel::error, dtn::data::BundleList::find(), dtn::storage::BundleStorage::get(), dtn::core::BundleCore::getInstance(), ibrcommon::Queue< T >::getnpop(), ibrcommon::File::getPath(), dtn::core::BundleCore::getStorage(), IBRCOMMON_LOGGER_ENDL, IBRCOMMON_LOGGER_TAG, ibrcommon::LogLevel::info, dtn::core::BundleCore::local, 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 230 of file FileConvergenceLayer.cpp.
References dtn::core::Node::CONN_FILE.
|
virtual |
Return an identifier for this component
Implements dtn::daemon::Component.
Definition at line 225 of file FileConvergenceLayer.cpp.
|
virtual |
This method opens a connection proactive.
| n |
Reimplemented from dtn::net::ConvergenceLayer.
Definition at line 235 of file FileConvergenceLayer.cpp.
|
virtual |
Implements dtn::net::ConvergenceLayer.
Definition at line 371 of file FileConvergenceLayer.cpp.
References ibrcommon::Queue< T >::push().

|
virtual |
Implements dtn::core::EventReceiver.
Definition at line 199 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.
