Configurator Class Reference

Configure a memory server. More...

#include <RobotAPI/libraries/armem/client/Configurator.h>

Public Member Functions

 Configurator (const Configurator &)=default
 Construct a memory reader.
 
 Configurator (server::ConfiguringMemoryInterfacePrx configuringMemory=nullptr)
 
 operator bool () const
 
void setConfiguringMemory (server::ConfiguringMemoryInterfacePrx configuringMemory)
 
void useDiskPersistenceStrategy (const std::string &identifier, const std::string &exportName, const std::string &exportPath, bool overwritePrevStrategy)
 Use the disk as LTM persistence sink.
 
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.
 

Public Attributes

server::ConfiguringMemoryInterfacePrx configurationPrx
 

Detailed Description

Configure a memory server.

Set the persistence strategy for the ltm of a memory server: Currently available: REST and DISK TODO: MongoDB

Constructor & Destructor Documentation

◆ Configurator() [1/2]

Configurator ( const Configurator & )
default

Construct a memory reader.

Parameters
memoryThe memory proxy.

◆ Configurator() [2/2]

Configurator ( server::ConfiguringMemoryInterfacePrx configuringMemory = nullptr)
inline

Member Function Documentation

◆ operator bool()

operator bool ( ) const
inline

◆ 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
identifierLTM identifier that should be unique and is used as origin when any new instances are commited to the wm.
exportNameExport name of the LTM on the disk (e.g. /exportPath/exportName/...)
exportPathBase path of the ltm export
overwritePrevStrategyif 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).

◆ 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
identifierLTM identifier that should be unique and is used as origin when any new instances are commited to the wm.
exportNameExport name of the LTM at the rest server (e.g. http:://host:port/exportName/...)
hostip to the rest server (e.g. localhost or a specific ip)
portnetwork port on which the server is accessible (e.g. 8080)
overwritePrevStrategyif 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).

Member Data Documentation

◆ configurationPrx

server::ConfiguringMemoryInterfacePrx configurationPrx

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