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 Attributes

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

Detailed Description

A registry for memory servers.

Definition at line 23 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 108 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 126 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 66 of file Registry.h.


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