ANNA Suite
2020b
Multipurpose development suite for Telco applications
|
#include <OriginHostManager.hpp>
Public Member Functions | |
virtual | ~OriginHostManager () |
origin_hosts_it | begin () const |
origin_hosts_it | end () const |
int | size () const |
void | registerOriginHost (const std::string &name, OriginHost *originHost) |
void | registerRemoteOriginHost (const std::string &remoteName, const std::string &ownName) |
OriginHost * | getOriginHost (const std::string &name) const |
OriginHost * | getOriginHostForRemoteOriginHost (const std::string &name) const |
OriginHost * | getOriginHost (const anna::U32 &applicationId) const |
virtual anna::xml::Node * | asXML (anna::xml::Node *parent) const |
Friends | |
class | anna::Singleton< OriginHostManager > |
Additional Inherited Members | |
Static Public Member Functions inherited from anna::Singleton< T > | |
static T & | instantiate () |
static void | release () |
Helper class to centralize application Origin Host Nodes
|
virtual |
Class XML representation.
parent | XML node over which we will put instance information. |
|
inline |
|
inline |
OriginHost* anna::diameter::comm::OriginHostManager::getOriginHost | ( | const std::string & | name | ) | const |
Get the associated origin host node for a provided name.
name | Origin Host Name |
OriginHost* anna::diameter::comm::OriginHostManager::getOriginHost | ( | const anna::U32 & | applicationId | ) | const |
Get the associated origin host node for a specific application id No indexed map by application id, so this search is sequential, but performance is not required as this is used when receiving CER.
application id to search
OriginHost* anna::diameter::comm::OriginHostManager::getOriginHostForRemoteOriginHost | ( | const std::string & | name | ) | const |
Get the associated origin host name for a provided remote origin host name. This relation was established on CER reception.
name | remote origin host name |
void anna::diameter::comm::OriginHostManager::registerOriginHost | ( | const std::string & | name, |
OriginHost * | originHost | ||
) |
Registers a new origin host node (externally allocated) associated to a name. If the name exists, the new origin host pointer will replace the existing one.
name | Origin Host Name |
originHost | Associated Origin Host node |
void anna::diameter::comm::OriginHostManager::registerRemoteOriginHost | ( | const std::string & | remoteName, |
const std::string & | ownName | ||
) |
Registers the relation between Origin Host for incoming request and own origin host.
remoteName | origin host name for the received CER |
ownName | Own origin host name |
|
inline |
|
friend |