Configure a memory server.
More...
#include <RobotAPI/libraries/armem/client/Configurator.h>
Configure a memory server.
Set the persistence strategy for the ltm of a memory server: Currently available: REST and DISK TODO: MongoDB
Definition at line 17 of file Configurator.h.
◆ Configurator() [1/2]
Construct a memory reader.
- Parameters
-
◆ Configurator() [2/2]
Configurator |
( |
server::ConfiguringMemoryInterfacePrx |
configuringMemory = nullptr | ) |
|
|
inline |
◆ operator bool()
◆ setConfiguringMemory()
void setConfiguringMemory |
( |
server::ConfiguringMemoryInterfacePrx |
configuringMemory | ) |
|
◆ useDiskPersistenceStrategy()
void useDiskPersistenceStrategy |
( |
const std::string & |
identifier, |
|
|
const std::string & |
exportName, |
|
|
const std::string & |
exportPath, |
|
|
bool |
overwritePrevStrategy |
|
) |
| |
Use the disk as LTM persistence sink.
- Parameters
-
identifier | LTM identifier that should be unique and is used as origin when any new instances are commited to the wm. |
exportName | Export name of the LTM on the disk (e.g. /exportPath/exportName/...) |
exportPath | Base path of the ltm export |
overwritePrevStrategy | if true, the newly defined strategy overwrites the current strategy resulting in a single strategy. If false, the newly defined strategy is appened to the current stategies ( |
- See also
- RedundantPersistenceStrategy).
Definition at line 14 of file Configurator.cpp.
◆ useRestPersistenceStrategy()
void useRestPersistenceStrategy |
( |
const std::string & |
identifier, |
|
|
const std::string & |
exportName, |
|
|
const std::string & |
host, |
|
|
int |
port, |
|
|
bool |
overwritePrevStrategy |
|
) |
| |
Use a rest server as LTM persistence sink.
- Parameters
-
identifier | LTM identifier that should be unique and is used as origin when any new instances are commited to the wm. |
exportName | Export name of the LTM at the rest server (e.g. http:://host:port/exportName/...) |
host | ip to the rest server (e.g. localhost or a specific ip) |
port | network port on which the server is accessible (e.g. 8080) |
overwritePrevStrategy | if true, the newly defined strategy overwrites the current strategy resulting in a single strategy. If false, the newly defined strategy is appened to the current stategies ( |
- See also
- RedundantPersistenceStrategy).
Definition at line 7 of file Configurator.cpp.
◆ configurationPrx
server::ConfiguringMemoryInterfacePrx configurationPrx |
The documentation for this class was generated from the following files: