lintel 0.2.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
lintel::SharedMemoryBootstrapPlugin Class Reference

#include <SharedMemoryBootstrapPlugin.h>

Inheritance diagram for lintel::SharedMemoryBootstrapPlugin:
lintel::BootstrapPlugin

Public Member Functions

 SharedMemoryBootstrapPlugin (const std::shared_ptr< DatabaseConnectionConfigurations > &connectionConfigurations, std::vector< std::shared_ptr< SharedMemoryRepository > > sharedMemoryRepositories, std::shared_ptr< SharedMemorySegmentManager > sharedMemorySegmentManager, std::shared_ptr< Configuration > configuration)
 
void onStart () override
 
BootstrapSequence getPriority () override
 
- Public Member Functions inherited from lintel::BootstrapPlugin
 BootstrapPlugin ()=default
 
virtual ~BootstrapPlugin ()=default
 

Detailed Description

Bootstrap plugin that validates shared memory segments and initializes them from the database. The structural validation (sanity and file size) and the event bus configuration check run in every process regardless of a database connection; the version bookmark check only runs when a default database connection is configured.

Constructor & Destructor Documentation

◆ SharedMemoryBootstrapPlugin()

lintel::SharedMemoryBootstrapPlugin::SharedMemoryBootstrapPlugin ( const std::shared_ptr< DatabaseConnectionConfigurations > &  connectionConfigurations,
std::vector< std::shared_ptr< SharedMemoryRepository > >  sharedMemoryRepositories,
std::shared_ptr< SharedMemorySegmentManager >  sharedMemorySegmentManager,
std::shared_ptr< Configuration >  configuration 
)

Construct a SharedMemoryBootstrapPlugin.

Parameters
connectionConfigurationsdatabase connection configurations
sharedMemoryRepositorieslist of shared memory repositories to initialize
sharedMemorySegmentManagerconfigured shared memory segments
configurationapplication configuration containing event buses

Member Function Documentation

◆ getPriority()

BootstrapSequence lintel::SharedMemoryBootstrapPlugin::getPriority ( )
overridevirtual

Returns the priority for ordering this plugin in the bootstrap sequence.

Implements lintel::BootstrapPlugin.

◆ onStart()

void lintel::SharedMemoryBootstrapPlugin::onStart ( )
overridevirtual

Load shared memory data from the database into shared memory segments.

Implements lintel::BootstrapPlugin.


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