|
|
Helps connecting a Memory server to the Ice interface. More...
#include <RobotAPI/libraries/armem/server/MemoryToIceAdapter.h>
Public Member Functions | |
| data::AddSegmentResult | addSegment (const data::AddSegmentInput &input, bool addCoreSegments=false) |
| data::AddSegmentsResult | addSegments (const data::AddSegmentsInput &input, bool addCoreSegments=false) |
| armem::CommitResult | commit (const armem::Commit &commit) |
| data::CommitResult | commit (const data::Commit &commitIce) |
| data::CommitResult | commit (const data::Commit &commitIce, Time timeArrived) |
| armem::CommitResult | commitLocking (const armem::Commit &commit) |
| data::CommitResult | commitLocking (const data::Commit &commitIce) |
| data::CommitResult | commitLocking (const data::Commit &commitIce, Time timeArrived) |
| dto::DirectlyStoreResult | directlyStore (const dto::DirectlyStoreInput &directlStoreInput) |
| prediction::data::EngineSupportMap | getAvailableEngines () |
| dto::RecordStatusResult | getRecordStatus () |
| armem::structure::data::GetServerStructureResult | getServerStructure () |
| const MemoryOperationStatistics & | getStatistics () const |
| Get statistics for memory operations (commits and queries) | |
| MemoryToIceAdapter (server::wm::Memory *workingMemory, server::ltm::Memory *longtermMemory) | |
| Construct a MemoryToIceAdapter from an existing Memory. | |
| prediction::data::PredictionResultSeq | predict (prediction::data::PredictionRequestSeq requests) |
| query::data::Result | query (const armem::query::data::Input &input) |
| client::QueryResult | query (const client::QueryInput &input) |
| query::data::Result | queryLTM (const armem::query::data::Input &input, bool storeIntoWM) |
| Query the LTMs of the memory server. | |
| armem::CommitResult | reloadAllFromLTM () |
| Loads all core segments and their data from the LTM. | |
| armem::CommitResult | reloadCoreSegmentsFromLTM (std::list< std::string > &coreSegmentname) |
| Only load specific core segments and their data from the LTM. | |
| armem::CommitResult | reloadFromLTMOnStartup () |
| Triggers a reload (. | |
| armem::CommitResult | reloadPropertyDefinedCoreSegmentsFromLTM () |
| void | reportDebugMetrics () |
| Report all debug metrics to the debug observer. | |
| void | resetStatistics () |
| Reset statistics counters. | |
| void | setMemoryListener (client::MemoryListenerInterfacePrx memoryListenerTopic) |
| dto::StartRecordResult | startRecord (const dto::StartRecordInput &startRecordInput) |
| dto::StopRecordResult | stopRecord () |
Public Attributes | |
| server::ltm::Memory * | longtermMemory |
| client::MemoryListenerInterfacePrx | memoryListenerTopic |
| server::wm::Memory * | workingMemory |
Helps connecting a Memory server to the Ice interface.
This involves conversion of ice types to C++ types as well as catchin exceptions and converting them to error messages
Definition at line 99 of file MemoryToIceAdapter.h.
| MemoryToIceAdapter | ( | server::wm::Memory * | workingMemory, |
| server::ltm::Memory * | longtermMemory ) |
Construct a MemoryToIceAdapter from an existing Memory.
Both pointers are non-owning and must be non-null: the commit and query paths dereference them unconditionally. This is checked in the constructor.
Definition at line 89 of file MemoryToIceAdapter.cpp.
| data::AddSegmentResult addSegment | ( | const data::AddSegmentInput & | input, |
| bool | addCoreSegments = false ) |
Definition at line 108 of file MemoryToIceAdapter.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| data::AddSegmentsResult addSegments | ( | const data::AddSegmentsInput & | input, |
| bool | addCoreSegments = false ) |
Definition at line 170 of file MemoryToIceAdapter.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| armem::CommitResult commit | ( | const armem::Commit & | commit | ) |
| data::CommitResult commit | ( | const data::Commit & | commitIce | ) |
| data::CommitResult commit | ( | const data::Commit & | commitIce, |
| Time | timeArrived ) |
Definition at line 184 of file MemoryToIceAdapter.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| armem::CommitResult commitLocking | ( | const armem::Commit & | commit | ) |
| data::CommitResult commitLocking | ( | const data::Commit & | commitIce | ) |
| data::CommitResult commitLocking | ( | const data::Commit & | commitIce, |
| Time | timeArrived ) |
Definition at line 240 of file MemoryToIceAdapter.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| dto::DirectlyStoreResult directlyStore | ( | const dto::DirectlyStoreInput & | directlStoreInput | ) |
| prediction::data::EngineSupportMap getAvailableEngines | ( | ) |
Definition at line 911 of file MemoryToIceAdapter.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| dto::RecordStatusResult getRecordStatus | ( | ) |
| armem::structure::data::GetServerStructureResult getServerStructure | ( | ) |
Definition at line 658 of file MemoryToIceAdapter.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Get statistics for memory operations (commits and queries)
Definition at line 174 of file MemoryToIceAdapter.h.
| prediction::data::PredictionResultSeq predict | ( | prediction::data::PredictionRequestSeq | requests | ) |
Definition at line 903 of file MemoryToIceAdapter.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| armem::query::data::Result query | ( | const armem::query::data::Input & | input | ) |
Definition at line 549 of file MemoryToIceAdapter.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| client::QueryResult query | ( | const client::QueryInput & | input | ) |
| armem::query::data::Result queryLTM | ( | const armem::query::data::Input & | input, |
| bool | storeIntoWM ) |
Query the LTMs of the memory server.
Stored into WM if recording mode is enabled.
| storeIntoWM | if set the result is also stored into the wm, no matter the recording mode. |
Definition at line 614 of file MemoryToIceAdapter.cpp.
Here is the call graph for this function:| armem::CommitResult reloadAllFromLTM | ( | ) |
Loads all core segments and their data from the LTM.
Definition at line 689 of file MemoryToIceAdapter.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| armem::CommitResult reloadCoreSegmentsFromLTM | ( | std::list< std::string > & | coreSegmentname | ) |
Only load specific core segments and their data from the LTM.
Definition at line 709 of file MemoryToIceAdapter.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| armem::CommitResult reloadFromLTMOnStartup | ( | ) |
Triggers a reload (.
Definition at line 765 of file MemoryToIceAdapter.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| armem::CommitResult reloadPropertyDefinedCoreSegmentsFromLTM | ( | ) |
Definition at line 740 of file MemoryToIceAdapter.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void reportDebugMetrics | ( | ) |
Report all debug metrics to the debug observer.
This should be called periodically (e.g., every second) to update the debug observer with current memory performance metrics.
Definition at line 941 of file MemoryToIceAdapter.cpp.
|
inline |
Reset statistics counters.
Definition at line 177 of file MemoryToIceAdapter.h.
| void setMemoryListener | ( | client::MemoryListenerInterfacePrx | memoryListenerTopic | ) |
Definition at line 101 of file MemoryToIceAdapter.cpp.
| dto::StartRecordResult startRecord | ( | const dto::StartRecordInput & | startRecordInput | ) |
| dto::StopRecordResult stopRecord | ( | ) |
| server::ltm::Memory* longtermMemory |
Definition at line 189 of file MemoryToIceAdapter.h.
| client::MemoryListenerInterfacePrx memoryListenerTopic |
Definition at line 191 of file MemoryToIceAdapter.h.
| server::wm::Memory* workingMemory |
Definition at line 188 of file MemoryToIceAdapter.h.