Public Member Functions | Protected Member Functions

dtn::daemon::IndependentComponent Class Reference

#include <Component.h>

Inherits dtn::daemon::Component, and ibrcommon::JoinableThread.

Inherited by dtn::core::SQLiteBundleStorage, dtn::daemon::ApiServer, dtn::net::DiscoveryAgent, dtn::net::HTTPConvergenceLayer, dtn::net::LOWPANConvergenceLayer, dtn::net::TCPConvergenceLayer, and dtn::net::UDPConvergenceLayer.

Collaboration diagram for dtn::daemon::IndependentComponent:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 IndependentComponent ()
virtual ~IndependentComponent ()
virtual void initialize ()
virtual void startup ()
virtual void terminate ()

Protected Member Functions

void run ()
virtual bool __cancellation ()=0
virtual void componentUp ()=0
virtual void componentRun ()=0
virtual void componentDown ()=0

Detailed Description

Independent components are working in an own thread.

Definition at line 56 of file Component.h.


Constructor & Destructor Documentation

dtn::daemon::IndependentComponent::IndependentComponent (  ) 

Definition at line 20 of file Component.cpp.

dtn::daemon::IndependentComponent::~IndependentComponent (  )  [virtual]

Definition at line 24 of file Component.cpp.

References ibrcommon::JoinableThread::join().

Here is the call graph for this function:


Member Function Documentation

virtual bool dtn::daemon::IndependentComponent::__cancellation (  )  [protected, pure virtual]

Reimplemented from ibrcommon::Thread.

Implemented in dtn::net::HTTPConvergenceLayer.

virtual void dtn::daemon::IndependentComponent::componentDown (  )  [protected, pure virtual]

Implemented in dtn::net::HTTPConvergenceLayer.

Referenced by terminate().

virtual void dtn::daemon::IndependentComponent::componentRun (  )  [protected, pure virtual]

Implemented in dtn::net::HTTPConvergenceLayer.

Referenced by run().

virtual void dtn::daemon::IndependentComponent::componentUp (  )  [protected, pure virtual]

Implemented in dtn::net::HTTPConvergenceLayer.

Referenced by initialize().

void dtn::daemon::IndependentComponent::initialize (  )  [virtual]

Definition at line 29 of file Component.cpp.

References componentUp().

Here is the call graph for this function:

void dtn::daemon::IndependentComponent::run (  )  [protected, virtual]

Abstract interface for thread context run method.

Implements ibrcommon::Thread.

Definition at line 49 of file Component.cpp.

References componentRun().

Here is the call graph for this function:

void dtn::daemon::IndependentComponent::startup (  )  [virtual]

Definition at line 34 of file Component.cpp.

References IBRCOMMON_LOGGER, ibrcommon::JoinableThread::start(), and ibrcommon::Exception::what().

Here is the call graph for this function:

void dtn::daemon::IndependentComponent::terminate (  )  [virtual]

Definition at line 43 of file Component.cpp.

References componentDown(), and ibrcommon::JoinableThread::stop().

Here is the call graph for this function:


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