ariba::utility::BootstrapManager Class Reference

#include <source/ariba/utility/bootstrap/BootstrapManager.h>

Inherits ariba::utility::BootstrapInformationCallback.

Collaboration diagram for ariba::utility::BootstrapManager:

Collaboration graph
[legend]

List of all members.

Public Types

enum  BootstrapType { BootstrapTypeMulticastDns, BootstrapTypePeriodicBroadcast, BootstrapTypeBluetoothSdp }
enum  RegistrationResult { RegistrationSucceeded, RegistrationNotSupported, RegistrationFailed }

Public Member Functions

RegistrationResult registerAllModules ()
RegistrationResult registerModule (BootstrapType type)
RegistrationResult unregisterAllModules ()
RegistrationResult unregisterModule (BootstrapType type)
bool isModuleRegistered (BootstrapType type)
void registerCallback (BootstrapInformationCallback *_callback)
void unregisterCallback (BootstrapInformationCallback *_callback)
void publish (string name, string info1, string info2, string info3)
void revoke (string name)

Static Public Member Functions

static BootstrapManagerinstance ()

Protected Member Functions

virtual void onBootstrapServiceFound (string name, string info1, string info2, string info3)

Private Types

typedef map< BootstrapType,
BootstrapModule * > 
ModuleMap
typedef vector
< BootstrapInformationCallback * > 
Callbacks

Private Member Functions

 use_logging_h (BootstrapManager)
 BootstrapManager ()
 ~BootstrapManager ()

Private Attributes

ModuleMap modules
boost::mutex modulesMutex
Callbacks callbacks

Friends

class BootstrapModule


Detailed Description

Definition at line 64 of file BootstrapManager.h.


Member Typedef Documentation

Definition at line 109 of file BootstrapManager.h.

Definition at line 105 of file BootstrapManager.h.


Member Enumeration Documentation

Enumerator:
BootstrapTypeMulticastDns 
BootstrapTypePeriodicBroadcast 
BootstrapTypeBluetoothSdp 

Definition at line 74 of file BootstrapManager.h.

Enumerator:
RegistrationSucceeded 
RegistrationNotSupported 
RegistrationFailed 

Definition at line 80 of file BootstrapManager.h.


Constructor & Destructor Documentation

ariba::utility::BootstrapManager::BootstrapManager (  )  [private]

Definition at line 50 of file BootstrapManager.cpp.

ariba::utility::BootstrapManager::~BootstrapManager (  )  [private]

Definition at line 53 of file BootstrapManager.cpp.


Member Function Documentation

static BootstrapManager& ariba::utility::BootstrapManager::instance (  )  [inline, static]

Definition at line 69 of file BootstrapManager.h.

bool ariba::utility::BootstrapManager::isModuleRegistered ( BootstrapType  type  ) 

Definition at line 99 of file BootstrapManager.cpp.

References modules, and modulesMutex.

void ariba::utility::BootstrapManager::onBootstrapServiceFound ( string  name,
string  info1,
string  info2,
string  info3 
) [protected, virtual]

void ariba::utility::BootstrapManager::publish ( string  name,
string  info1,
string  info2,
string  info3 
)

Definition at line 186 of file BootstrapManager.cpp.

References logging_info, modules, and modulesMutex.

Referenced by ariba::overlay::OverlayBootstrap::publish().

BootstrapManager::RegistrationResult ariba::utility::BootstrapManager::registerAllModules (  ) 

void ariba::utility::BootstrapManager::registerCallback ( BootstrapInformationCallback _callback  ) 

Definition at line 174 of file BootstrapManager.cpp.

References callbacks.

Referenced by ariba::overlay::OverlayBootstrap::start().

BootstrapManager::RegistrationResult ariba::utility::BootstrapManager::registerModule ( BootstrapManager::BootstrapType  type  ) 

void ariba::utility::BootstrapManager::revoke ( string  name  ) 

Definition at line 199 of file BootstrapManager.cpp.

References logging_info, modules, and modulesMutex.

Referenced by ariba::overlay::OverlayBootstrap::revoke().

BootstrapManager::RegistrationResult ariba::utility::BootstrapManager::unregisterAllModules (  ) 

void ariba::utility::BootstrapManager::unregisterCallback ( BootstrapInformationCallback _callback  ) 

Definition at line 180 of file BootstrapManager.cpp.

References callbacks.

Referenced by ariba::overlay::OverlayBootstrap::stop().

BootstrapManager::RegistrationResult ariba::utility::BootstrapManager::unregisterModule ( BootstrapManager::BootstrapType  type  ) 

ariba::utility::BootstrapManager::use_logging_h ( BootstrapManager   )  [private]


Friends And Related Function Documentation

friend class BootstrapModule [friend]

Definition at line 66 of file BootstrapManager.h.


Member Data Documentation


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

Generated on Fri Aug 14 23:39:32 2009 for Ariba by  doxygen 1.5.8