lintel 0.2.0
Loading...
Searching...
No Matches
SharedMemoryApi.h
Go to the documentation of this file.
1#ifndef LINTEL_SHAREDMEMORYAPI_H
2#define LINTEL_SHAREDMEMORYAPI_H
3
4#include <memory>
5
9
10namespace lintel {
13{
14private:
15 std::shared_ptr<Client> m_client;
16
17public:
18 explicit SharedMemoryApi(const std::shared_ptr<ClientProvider> &clientProvider);
19
20 // segment
22 std::vector<SharedMemorySegmentDto> allSegmentsOf(const std::string &segmentName = ".*");
23
25 void shrinkOf(const std::string &segmentName);
26
28 void growOf(const std::string &segmentName, const std::string &sizeStr);
29
30 // repositories
32 std::vector<SharedMemoryRepositoryDto> allRepositoriesOf(const std::string &repositoryName = ".*",
33 const std::string &segmentName = ".*");
34
36 std::string repositoryOf(const std::string &uuid);
37};
38
39}// namespace lintel
40#endif// LINTEL_SHAREDMEMORYAPI_H
Definition SharedMemoryApi.h:13
std::vector< SharedMemorySegmentDto > allSegmentsOf(const std::string &segmentName=".*")
void growOf(const std::string &segmentName, const std::string &sizeStr)
std::vector< SharedMemoryRepositoryDto > allRepositoriesOf(const std::string &repositoryName=".*", const std::string &segmentName=".*")
SharedMemoryApi(const std::shared_ptr< ClientProvider > &clientProvider)
void shrinkOf(const std::string &segmentName)
std::string repositoryOf(const std::string &uuid)
Definition BaseFeature.h:6
constexpr std::string_view type_name()
Definition TypeName.h:9