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

Management TCP server for FIX engine runtime control and inspection. More...

#include <management_server.h>

Inherits TcpReactor< Epoll >.

Public Member Functions

bool register_client (ManagedInstance *instance)
 Registers a managed FIX client instance with the management server. More...
 
bool register_server (ManagedInstance *instance)
 Registers a managed FIX server instance with the management server. More...
 

Detailed Description

Management TCP server for FIX engine runtime control and inspection.

ManagementServer provides a lightweight, delimiter-based TCP interface used to manage and introspect FIX clients and FIX servers at runtime.

It is not a Telnet-compatible server and accepts only plain TCP connections. Commands and responses are delimited using Commands::COMMAND_DELIMITER (e.g. '|').

The server supports:

  • Runtime registration of managed FIX client and server instances
  • Execution of management commands via CommandFactory
  • Centralised access to engine metadata (version, start time, log path)
Note
The server must be successfully created via create() before registering any managed instances.
Warning
Instance names must be unique across both clients and servers.

Member Function Documentation

◆ register_client()

bool llfix::ManagementServer::register_client ( ManagedInstance *  instance)
inline

Registers a managed FIX client instance with the management server.

Adds the provided ManagedInstance to the internal client registry, making it accessible to management commands

The management server must be successfully initialised prior to calling this method.

Parameters
instancePointer to a ManagedInstance representing a FIX client.
Returns
true if the client was successfully registered, false otherwise.
Note
Client instance names must be unique across all registered clients and servers.

◆ register_server()

bool llfix::ManagementServer::register_server ( ManagedInstance *  instance)
inline

Registers a managed FIX server instance with the management server.

Adds the provided ManagedInstance to the internal server registry, allowing management commands to interact with FIX server components.

The management server must be fully initialised before invoking this method.

Parameters
instancePointer to a ManagedInstance representing a FIX server.
Returns
true if the server was successfully registered, false otherwise.
Note
Server instance names must be unique across all registered clients and servers.

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