IBR-DTNSuite  0.10
dtn::net::FileConvergenceLayer Class Reference

#include <FileConvergenceLayer.h>

Inheritance diagram for dtn::net::FileConvergenceLayer:
Inheritance graph
Collaboration diagram for dtn::net::FileConvergenceLayer:
Collaboration graph

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_mapgetStats ()
 
- 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
 

Detailed Description

Definition at line 38 of file FileConvergenceLayer.h.

Constructor & Destructor Documentation

dtn::net::FileConvergenceLayer::FileConvergenceLayer ( )

Definition at line 62 of file FileConvergenceLayer.cpp.

dtn::net::FileConvergenceLayer::~FileConvergenceLayer ( )
virtual

Definition at line 66 of file FileConvergenceLayer.cpp.

Member Function Documentation

void dtn::net::FileConvergenceLayer::__cancellation ( ) throw ()
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().

Here is the call graph for this function:

void dtn::net::FileConvergenceLayer::componentDown ( ) throw ()
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().

Here is the call graph for this function:

void dtn::net::FileConvergenceLayer::componentUp ( ) throw ()
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().

Here is the call graph for this function:

dtn::core::Node::Protocol dtn::net::FileConvergenceLayer::getDiscoveryProtocol ( ) const
virtual

Implements dtn::net::ConvergenceLayer.

Definition at line 230 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

Returns

Implements dtn::daemon::Component.

Definition at line 225 of file FileConvergenceLayer.cpp.

void dtn::net::FileConvergenceLayer::open ( const dtn::core::Node )
virtual

This method opens a connection proactive.

Parameters
n

Reimplemented from dtn::net::ConvergenceLayer.

Definition at line 235 of file FileConvergenceLayer.cpp.

void dtn::net::FileConvergenceLayer::queue ( const dtn::core::Node n,
const dtn::net::BundleTransfer job 
)
virtual

Implements dtn::net::ConvergenceLayer.

Definition at line 371 of file FileConvergenceLayer.cpp.

References ibrcommon::Queue< T >::push().

Here is the call graph for this function:

void dtn::net::FileConvergenceLayer::raiseEvent ( const dtn::core::Event evt) throw ()
virtual

The documentation for this class was generated from the following files: