IBR-DTNSuite
0.8
|
#include <FileConvergenceLayer.h>
Classes | |
class | StoreBundleTask |
class | Task |
Public Member Functions | |
FileConvergenceLayer () | |
virtual | ~FileConvergenceLayer () |
void | raiseEvent (const dtn::core::Event *evt) |
dtn::core::Node::Protocol | getDiscoveryProtocol () const |
void | open (const dtn::core::Node &) |
void | queue (const dtn::core::Node &n, const ConvergenceLayer::Job &job) |
const std::string | getName () const |
Protected Member Functions | |
void | componentUp () |
void | componentRun () |
void | componentDown () |
void | __cancellation () |
Definition at line 24 of file FileConvergenceLayer.h.
Definition at line 47 of file FileConvergenceLayer.cpp.
dtn::net::FileConvergenceLayer::~FileConvergenceLayer | ( | ) | [virtual] |
Definition at line 51 of file FileConvergenceLayer.cpp.
void dtn::net::FileConvergenceLayer::__cancellation | ( | ) | [protected, virtual] |
Implements dtn::daemon::IndependentComponent.
Definition at line 67 of file FileConvergenceLayer.cpp.
void dtn::net::FileConvergenceLayer::componentDown | ( | ) | [protected, virtual] |
Implements dtn::daemon::IndependentComponent.
Definition at line 61 of file FileConvergenceLayer.cpp.
References dtn::core::TimeEvent::className, and dtn::core::NodeEvent::className.
void dtn::net::FileConvergenceLayer::componentRun | ( | ) | [protected, virtual] |
Implements dtn::daemon::IndependentComponent.
Definition at line 72 of file FileConvergenceLayer.cpp.
References dtn::data::PrimaryBlock::_destination, dtn::core::BUNDLE_FORWARDED, dtn::storage::BundleStorage::get(), dtn::core::BundleCore::getInstance(), ibrcommon::File::getPath(), dtn::core::BundleCore::getStorage(), IBRCOMMON_LOGGER, IBRCOMMON_LOGGER_ENDL, dtn::core::BundleCore::local, dtn::net::TransferCompletedEvent::raise(), dtn::routing::RequeueBundleEvent::raise(), dtn::net::TransferAbortedEvent::raise(), dtn::core::BundleEvent::raise(), dtn::net::TransferAbortedEvent::REASON_BUNDLE_DELETED, dtn::net::TransferAbortedEvent::REASON_REFUSED, and ibrcommon::File::remove().
void dtn::net::FileConvergenceLayer::componentUp | ( | ) | [protected, virtual] |
Implements dtn::daemon::IndependentComponent.
Definition at line 55 of file FileConvergenceLayer.cpp.
References dtn::core::TimeEvent::className, and dtn::core::NodeEvent::className.
dtn::core::Node::Protocol dtn::net::FileConvergenceLayer::getDiscoveryProtocol | ( | ) | const [virtual] |
Implements dtn::net::ConvergenceLayer.
Definition at line 216 of file FileConvergenceLayer.cpp.
References dtn::core::Node::CONN_FILE.
const std::string dtn::net::FileConvergenceLayer::getName | ( | ) | const [virtual] |
Return an identifier for this component
Implements dtn::daemon::Component.
Definition at line 211 of file FileConvergenceLayer.cpp.
void dtn::net::FileConvergenceLayer::open | ( | const dtn::core::Node & | ) | [virtual] |
This method opens a connection proactive.
n |
Reimplemented from dtn::net::ConvergenceLayer.
Definition at line 221 of file FileConvergenceLayer.cpp.
void dtn::net::FileConvergenceLayer::queue | ( | const dtn::core::Node & | n, |
const ConvergenceLayer::Job & | job | ||
) | [virtual] |
Implements dtn::net::ConvergenceLayer.
Definition at line 363 of file FileConvergenceLayer.cpp.
void dtn::net::FileConvergenceLayer::raiseEvent | ( | const dtn::core::Event * | evt | ) | [virtual] |
Implements dtn::core::EventReceiver.
Definition at line 185 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.