|
A registry for memory servers. More...
#include <RobotAPI/libraries/armem/mns/Registry.h>
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, ServerInfo > | servers |
The registered memories. More... | |
A registry for memory servers.
Definition at line 23 of file Registry.h.
dto::GetAllRegisteredServersResult getAllRegisteredServers | ( | ) |
Definition at line 108 of file Registry.cpp.
bool hasServer | ( | const std::string & | memoryName | ) | const |
Indicates whether a server entry for that name exists.
Definition at line 16 of file Registry.cpp.
|
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.
dto::RemoveServerResult removeServer | ( | const dto::RemoveServerInput & | input | ) |
Remove a server entry.
Definition at line 64 of file Registry.cpp.
dto::ResolveServerResult resolveServer | ( | const dto::ResolveServerInput & | input | ) |
Gets a server entry, if it is available.
Definition at line 126 of file Registry.cpp.
std::map<std::string, ServerInfo> servers |
The registered memories.
Definition at line 66 of file Registry.h.