IBR-DTNSuite 0.6

dtn::daemon::IndependentComponent Class Reference

#include <Component.h>

Inheritance diagram for dtn::daemon::IndependentComponent:
Collaboration diagram for dtn::daemon::IndependentComponent:

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 21 of file Component.cpp.

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

Definition at line 25 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]
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 30 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 50 of file Component.cpp.

References componentRun().

Here is the call graph for this function:

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 35 of file Component.cpp.

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

Here is the call graph for this function:

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 44 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: