IBR-DTNSuite  0.10
dtn::daemon::IndependentComponent Class Referenceabstract

#include <Component.h>

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

Public Member Functions

 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
 
virtual const std::string getName () const =0
 

Protected Member Functions

void run () throw ()
 
virtual void __cancellation ()=0 throw ()
 
virtual void componentUp ()=0 throw ()
 
virtual void componentRun ()=0 throw ()
 
virtual void componentDown ()=0 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

Detailed Description

Independent components are working in an own thread.

Definition at line 70 of file Component.h.

Constructor & Destructor Documentation

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

Definition at line 34 of file Component.cpp.

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

Definition at line 38 of file Component.cpp.

References ibrcommon::JoinableThread::join().

Here is the call graph for this function:

Member Function Documentation

virtual void dtn::daemon::IndependentComponent::componentDown ( ) throw ()
protectedpure virtual
void dtn::daemon::IndependentComponent::initialize ( ) throw ()
virtual

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

Implements dtn::daemon::Component.

Definition at line 43 of file Component.cpp.

References componentUp().

Here is the call graph for this function:

void dtn::daemon::IndependentComponent::run ( ) throw ()
protectedvirtual

Abstract interface for thread context run method.

Implements ibrcommon::Thread.

Definition at line 66 of file Component.cpp.

References componentRun().

Here is the call graph for this function:

void dtn::daemon::IndependentComponent::startup ( ) throw ()
virtual

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

Implements dtn::daemon::Component.

Definition at line 51 of file Component.cpp.

References ibrcommon::LogLevel::error, IBRCOMMON_LOGGER_ENDL, IBRCOMMON_LOGGER_TAG, and ibrcommon::Exception::what().

Here is the call graph for this function:

void dtn::daemon::IndependentComponent::terminate ( ) throw ()
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 60 of file Component.cpp.

References componentDown().

Here is the call graph for this function:


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