dtn::daemon::IndependentComponent Class Reference

#include <Component.h>

Inheritance diagram for dtn::daemon::IndependentComponent:
dtn::daemon::Component ibrcommon::JoinableThread ibrcommon::Thread dtn::core::SimpleBundleStorage dtn::core::SQLiteBundleStorage dtn::core::WallClock dtn::net::DiscoveryAgent dtn::net::GenericServer< T > dtn::net::HTTPConvergenceLayer dtn::net::LOWPANConvergenceLayer dtn::net::UDPConvergenceLayer dtn::net::GenericServer< ClientHandler > dtn::net::GenericServer< TCPConvergenceLayer::TCPConnection >

List of all members.

Public Member Functions

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

Protected Member Functions

void run ()
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 50 of file Component.h.


Constructor & Destructor Documentation

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

Definition at line 19 of file Component.cpp.

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

Definition at line 24 of file Component.cpp.

References ibrcommon::JoinableThread::join().


Member Function Documentation

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

Set up the component. At this stage no other components should be used.

Implements dtn::daemon::Component.

Definition at line 35 of file Component.cpp.

References componentUp().

Referenced by dtn::core::BundleCore::componentUp(), and dtn::net::TCPConvergenceLayer::initialize().

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

Abstract interface for thread context run method.

Implements ibrcommon::Thread.

Definition at line 58 of file Component.cpp.

References componentRun().

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

Start up the component. At this stage all other components are ready.

Implements dtn::daemon::Component.

Definition at line 40 of file Component.cpp.

References ibrcommon::JoinableThread::start().

Referenced by dtn::core::BundleCore::componentUp(), and dtn::net::TCPConvergenceLayer::startup().

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

Terminate the component and do some cleanup stuff. All other components still exists, but may not serve signals.

Implements dtn::daemon::Component.

Definition at line 48 of file Component.cpp.

References componentDown().

Referenced by dtn::core::BundleCore::componentDown(), and dtn::net::TCPConvergenceLayer::terminate().


The documentation for this class was generated from the following files:
Generated on Mon Aug 23 08:12:58 2010 for IBR-DTNSuite by  doxygen 1.6.3