IBR-DTNSuite  0.8
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 void __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

Definition at line 24 of file Component.cpp.

References ibrcommon::JoinableThread::join().

Here is the call graph for this function:


Member Function Documentation

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

Implements dtn::daemon::Component.

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:

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

Implements dtn::daemon::Component.

Definition at line 34 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:

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