|
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... | |
![]() | |
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, ServerInfo > | servers |
The registered memories. More... | |
Additional Inherited Members | |
![]() | |
bool | checkLogLevel (MessageTypeT level) const |
const LogSenderPtr & | getLogSender () const |
Retrieve log sender. More... | |
LogSenderPtr | loghelper (const char *file, int line, const char *function) const |
![]() | |
MessageTypeT | minimumLoggingLevel |
SpamFilterDataPtr | spamFilter |
LogTag | tag |
A registry for memory servers.
Definition at line 21 of file Registry.h.
dto::GetAllRegisteredServersResult getAllRegisteredServers | ( | ) |
Definition at line 107 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 125 of file Registry.cpp.
std::map<std::string, ServerInfo> servers |
The registered memories.
Definition at line 62 of file Registry.h.