Registry Class Reference

A registry for memory servers. More...

#include <RobotAPI/libraries/armem/mns/Registry.h>

+ Inheritance diagram for Registry:

Classes

struct  ServerInfo
 Information about a memory entry. More...
 

Public Member Functions

dto::GetAllRegisteredServersResult getAllRegisteredServers ()
 
bool hasServer (const std::string &memoryName) const
 Indicates whether a server entry for that name exists. More...
 
virtual dto::RegisterServerResult registerServer (const dto::RegisterServerInput &input)
 Register a new memory server or update an existing entry. More...
 
 Registry (const std::string &logTag="MemoryNameSystem Registry")
 
dto::RemoveServerResult removeServer (const dto::RemoveServerInput &input)
 Remove a server entry. More...
 
dto::ResolveServerResult resolveServer (const dto::ResolveServerInput &input)
 Gets a server entry, if it is available. More...
 
- Public Member Functions inherited from Logging
SpamFilterDataPtr deactivateSpam (float deactivationDurationSec=10.0f, const std::string &identifier="", bool deactivate=true) const
 disables the logging for the current line for the given amount of seconds. More...
 
MessageTypeT getEffectiveLoggingLevel () const
 
 Logging ()
 
void setLocalMinimumLoggingLevel (MessageTypeT level)
 With setLocalMinimumLoggingLevel the minimum verbosity-level of log-messages can be set. More...
 
void setTag (const LogTag &tag)
 
void setTag (const std::string &tagName)
 
virtual ~Logging ()
 

Public Attributes

std::map< std::string, ServerInfoservers
 The registered memories. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Logging
bool checkLogLevel (MessageTypeT level) const
 
const LogSenderPtrgetLogSender () const
 Retrieve log sender. More...
 
LogSenderPtr loghelper (const char *file, int line, const char *function) const
 
- Protected Attributes inherited from Logging
MessageTypeT minimumLoggingLevel
 
SpamFilterDataPtr spamFilter
 
LogTag tag
 

Detailed Description

A registry for memory servers.

Definition at line 21 of file Registry.h.

Constructor & Destructor Documentation

◆ Registry()

Registry ( const std::string &  logTag = "MemoryNameSystem Registry")

Definition at line 10 of file Registry.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ getAllRegisteredServers()

dto::GetAllRegisteredServersResult getAllRegisteredServers ( )

Definition at line 107 of file Registry.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ hasServer()

bool hasServer ( const std::string &  memoryName) const

Indicates whether a server entry for that name exists.

Definition at line 16 of file Registry.cpp.

◆ registerServer()

dto::RegisterServerResult registerServer ( const dto::RegisterServerInput &  input)
virtual

Register a new memory server or update an existing entry.

Causes threads waiting in waitForMemory() to resume if the respective memory server was added.

Reimplemented in MemoryNameSystem.

Definition at line 22 of file Registry.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ removeServer()

dto::RemoveServerResult removeServer ( const dto::RemoveServerInput &  input)

Remove a server entry.

Definition at line 64 of file Registry.cpp.

+ Here is the caller graph for this function:

◆ resolveServer()

dto::ResolveServerResult resolveServer ( const dto::ResolveServerInput &  input)

Gets a server entry, if it is available.

Definition at line 125 of file Registry.cpp.

+ Here is the caller graph for this function:

Member Data Documentation

◆ servers

std::map<std::string, ServerInfo> servers

The registered memories.

Definition at line 62 of file Registry.h.


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