Classes | Public Member Functions | Protected Member Functions | Protected Attributes

dtn::core::AbstractWorker Class Reference

#include <AbstractWorker.h>

Inherits ibrcommon::Mutex.

Inherited by dtn::daemon::Debugger, dtn::daemon::DevNull, and dtn::daemon::EchoWorker.

Collaboration diagram for dtn::core::AbstractWorker:
Collaboration graph
[legend]

List of all members.

Classes

class  AbstractWorkerAsync

Public Member Functions

 AbstractWorker ()
virtual ~AbstractWorker ()
virtual const EID getWorkerURI () const
virtual void callbackBundleReceived (const Bundle &b)=0

Protected Member Functions

void initialize (const string uri, bool async=false)
void transmit (const Bundle &bundle)
void shutdown ()

Protected Attributes

EID _eid

Detailed Description

Definition at line 21 of file AbstractWorker.h.


Constructor & Destructor Documentation

dtn::core::AbstractWorker::AbstractWorker (  ) 

Definition at line 104 of file AbstractWorker.cpp.

dtn::core::AbstractWorker::~AbstractWorker (  )  [virtual]

Definition at line 119 of file AbstractWorker.cpp.

References shutdown().

Here is the call graph for this function:


Member Function Documentation

virtual void dtn::core::AbstractWorker::callbackBundleReceived ( const Bundle b  )  [pure virtual]
const EID dtn::core::AbstractWorker::getWorkerURI (  )  const [virtual]

Definition at line 130 of file AbstractWorker.cpp.

References _eid.

Referenced by dtn::daemon::EchoWorker::callbackBundleReceived().

void dtn::core::AbstractWorker::initialize ( const string  uri,
bool  async = false 
) [protected]

Definition at line 108 of file AbstractWorker.cpp.

References _eid, IBRCOMMON_LOGGER, dtn::core::BundleCore::local, and ibrcommon::Exception::what().

Referenced by dtn::daemon::EchoWorker::EchoWorker().

Here is the call graph for this function:

void dtn::core::AbstractWorker::shutdown (  )  [protected]

Definition at line 124 of file AbstractWorker.cpp.

Referenced by ~AbstractWorker().

void dtn::core::AbstractWorker::transmit ( const Bundle bundle  )  [protected]

Definition at line 135 of file AbstractWorker.cpp.

References dtn::core::BundleGeneratedEvent::raise().

Referenced by dtn::daemon::EchoWorker::callbackBundleReceived().

Here is the call graph for this function:


Member Data Documentation

Definition at line 58 of file AbstractWorker.h.

Referenced by getWorkerURI(), and initialize().


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