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.
 
virtual dto::RegisterServerResult registerServer (const dto::RegisterServerInput &input)
 Register a new memory server or update an existing entry.
 
 Registry (const std::string &logTag="MemoryNameSystem Registry")
 
dto::RemoveServerResult removeServer (const dto::RemoveServerInput &input)
 Remove a server entry.
 
dto::ResolveServerResult resolveServer (const dto::ResolveServerInput &input)
 Gets a server entry, if it is available.
 
- 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.
 
MessageTypeT getEffectiveLoggingLevel () const
 
 Logging ()
 
void setLocalMinimumLoggingLevel (MessageTypeT level)
 With setLocalMinimumLoggingLevel the minimum verbosity-level of log-messages can be set.
 
void setTag (const LogTag &tag)
 
void setTag (const std::string &tagName)
 
virtual ~Logging ()
 

Public Attributes

std::map< std::string, ServerInfo > servers
 The registered memories.
 

Additional Inherited Members

- Protected Member Functions inherited from Logging
bool checkLogLevel (MessageTypeT level) const
 
const LogSenderPtr & getLogSender () const
 Retrieve log sender.
 
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.

Constructor & Destructor Documentation

◆ Registry()

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

Member Function Documentation

◆ getAllRegisteredServers()

dto::GetAllRegisteredServersResult getAllRegisteredServers ( )

◆ hasServer()

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

Indicates whether a server entry for that name exists.

◆ 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.

◆ removeServer()

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

Remove a server entry.

◆ resolveServer()

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

Gets a server entry, if it is available.

Member Data Documentation

◆ servers

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

The registered memories.


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