IBR-DTNSuite
0.8
|
#include <Component.h>
Public Member Functions | |
IntegratedComponent () | |
virtual | ~IntegratedComponent () |
virtual void | initialize () |
virtual void | startup () |
virtual void | terminate () |
Protected Member Functions | |
virtual void | componentUp ()=0 |
virtual void | componentDown ()=0 |
Definition at line 75 of file Component.h.
Definition at line 54 of file Component.cpp.
dtn::daemon::IntegratedComponent::~IntegratedComponent | ( | ) | [virtual] |
Definition at line 58 of file Component.cpp.
virtual void dtn::daemon::IntegratedComponent::componentDown | ( | ) | [protected, pure virtual] |
Implemented in dtn::routing::BaseRouter, dtn::storage::SimpleBundleStorage, dtn::core::BundleCore, dtn::core::EventSwitch, dtn::storage::MemoryBundleStorage, dtn::net::ConnectionManager, dtn::daemon::StatisticLogger, dtn::core::WallClock, dtn::daemon::Notifier, and dtn::daemon::StandByManager.
Referenced by terminate().
virtual void dtn::daemon::IntegratedComponent::componentUp | ( | ) | [protected, pure virtual] |
Implemented in dtn::routing::BaseRouter, dtn::storage::SimpleBundleStorage, dtn::core::BundleCore, dtn::core::EventSwitch, dtn::storage::MemoryBundleStorage, dtn::net::ConnectionManager, dtn::daemon::StatisticLogger, dtn::core::WallClock, dtn::daemon::Notifier, and dtn::daemon::StandByManager.
Referenced by initialize().
void dtn::daemon::IntegratedComponent::initialize | ( | ) | [virtual] |
Set up the component. At this stage no other components should be used.
Implements dtn::daemon::Component.
Definition at line 62 of file Component.cpp.
References componentUp().
Referenced by __daemon_run(), and dtn::core::BundleCore::componentUp().
void dtn::daemon::IntegratedComponent::startup | ( | ) | [virtual] |
Start up the component. At this stage all other components are ready.
Implements dtn::daemon::Component.
Definition at line 67 of file Component.cpp.
Referenced by __daemon_run(), and dtn::core::BundleCore::componentUp().
void dtn::daemon::IntegratedComponent::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 72 of file Component.cpp.
References componentDown().
Referenced by __daemon_run(), and dtn::core::BundleCore::componentDown().