|
IBR-DTNSuite 0.6
|
#include <Component.h>


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 |
Independent components are working in an own thread.
Definition at line 56 of file Component.h.
| 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().

| virtual bool dtn::daemon::IndependentComponent::__cancellation | ( | ) | [protected, pure virtual] |
Reimplemented from ibrcommon::Thread.
Implemented in dtn::api::ApiServer, dtn::core::SQLiteBundleStorage, dtn::net::HTTPConvergenceLayer, dtn::net::IPNDAgent, dtn::net::LOWPANConvergenceLayer, dtn::net::TCPConvergenceLayer, and dtn::net::UDPConvergenceLayer.
| 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().

| 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().

| 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().

| 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().
