llfix
Low-latency FIX engine
llfix::Engine Class Reference

Singleton Engine instance. More...

#include <engine.h>

Static Public Member Functions

static void on_start (const std::string &config_file_path="", const std::string &config_group_name="ENGINE")
 Initialise and start the engine. More...
 
static void shutdown ()
 Stops the engine by releasing resources. More...
 
static void stop_management_server ()
 Stops the management server. More...
 
static ManagementServerget_management_server ()
 Get reference to the management server instance. More...
 

Detailed Description

Singleton Engine instance.

This class is responsible for managing subsystems that are shared between FIX instances : TCP admin interface, logging, allocations, thread local storage, OpenSSL and Solarflare TCPDirect

Member Function Documentation

◆ get_management_server()

static ManagementServer& llfix::Engine::get_management_server ( )
inlinestatic

Get reference to the management server instance.

Returns
Reference to the singleton ManagementServer instance.

◆ on_start()

static void llfix::Engine::on_start ( const std::string &  config_file_path = "",
const std::string &  config_group_name = "ENGINE" 
)
inlinestatic

Initialise and start the engine.

Should be called before initialising any FIX client/FIX server Note : Not thread safe

Parameters
config_file_pathOptional path to configuration file.
config_group_nameOptional configuration group name (default "ENGINE").

◆ shutdown()

static void llfix::Engine::shutdown ( )
inlinestatic

Stops the engine by releasing resources.

Safe to call multiple times. Ensures the management server is stopped cleanly.

◆ stop_management_server()

static void llfix::Engine::stop_management_server ( )
inlinestatic

Stops the management server.

Safe to call multiple times. Ensures the management server is stopped cleanly.


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