lintel 0.2.0
Loading...
Searching...
No Matches
SharedMemoryBootstrapPlugin.h
Go to the documentation of this file.
1#ifndef LINTEL_SHAREDMEMORYBOOTSTRAPPLUGIN_H
2#define LINTEL_SHAREDMEMORYBOOTSTRAPPLUGIN_H
3
4#include <memory>
5
14
15namespace lintel {
22{
23private:
24 std::shared_ptr<DatabaseConnectionEntry> m_connectionEntry;
25 std::vector<std::shared_ptr<SharedMemoryRepository>> m_sharedMemoryRepositories;
26 std::shared_ptr<SharedMemorySegmentManager> m_sharedMemorySegmentManager;
27 std::shared_ptr<Configuration> m_configuration;
28
32 void validateSegments();
33
37 void validateEventBuses();
38
43 static EventBusConfig configOf(const std::shared_ptr<EventBusEntry> &entry);
44
45public:
51 SharedMemoryBootstrapPlugin(const std::shared_ptr<DatabaseConnectionConfigurations> &connectionConfigurations,
52 std::vector<std::shared_ptr<SharedMemoryRepository>> sharedMemoryRepositories,
53 std::shared_ptr<SharedMemorySegmentManager> sharedMemorySegmentManager,
54 std::shared_ptr<Configuration> configuration);
55
57 void onStart() override;
58
61};
62
63}// namespace lintel
64#endif// LINTEL_SHAREDMEMORYBOOTSTRAPPLUGIN_H
Definition BootstrapPlugin.h:9
Definition BootstrapSequence.h:13
Definition SharedMemoryBootstrapPlugin.h:22
BootstrapSequence getPriority() override
SharedMemoryBootstrapPlugin(const std::shared_ptr< DatabaseConnectionConfigurations > &connectionConfigurations, std::vector< std::shared_ptr< SharedMemoryRepository > > sharedMemoryRepositories, std::shared_ptr< SharedMemorySegmentManager > sharedMemorySegmentManager, std::shared_ptr< Configuration > configuration)
Definition BaseFeature.h:6
Definition EventBus.h:31