OnixS BME SENAF Handler C++ library  2.0.1
API documentation
HandlerSettings Struct Reference

#include <OnixS/Senaf/MarketData/HandlerSettings.h>

Collaboration diagram for HandlerSettings:

Public Member Functions

 HandlerSettings ()
std::string toString () const

Public Attributes

std::string licenseDirectory
std::string logDirectory
std::string logFileNamePrefix
LogLevel logLevel
AdvancedLogOptionSet advancedLogOptions
std::string networkInterface
time_t heartbeatInterval
ThreadAffinity processingThreadAffinity
std::string applicationName
std::string applicationPassword
unsigned short applicationVersion
ConnectionRetries connectionRetries
CpuIndexes receivingThreadAffinity
CpuIndexes sendingThreadAffinity
LogList logs
float logPlayerSpeedMultiplier
unsigned logPlayerSpeedAuxDelay
std::string auditTrailDirectory
std::string auditTrailFileNamePrefix
CpuIndexes auditTrailThreadAffinity
std::string marketImageDirectory
std::string marketImageFileNamePrefix

Detailed Description

Definition at line 95 of file HandlerSettings.h.

Constructor & Destructor Documentation

Initializes instance with default values for control parameters.

Member Function Documentation

std::string toString ( ) const

Returns string representation.

Member Data Documentation

AdvancedLogOptionSet advancedLogOptions

Additional options to control which data is to be logged. Ignored if logging is disabled.

The default value is AdvancedLogOptions::Default.

Definition at line 132 of file HandlerSettings.h.

std::string applicationName

Application Name.

Definition at line 169 of file HandlerSettings.h.

std::string applicationPassword

Application Password.

Definition at line 174 of file HandlerSettings.h.

unsigned short applicationVersion

Application Version.

Definition at line 179 of file HandlerSettings.h.

std::string auditTrailDirectory

Audit Trail files are stored in this directory.

The default value is empty string.

Definition at line 226 of file HandlerSettings.h.

std::string auditTrailFileNamePrefix

Template of Audit Trail file name without extension.

Creates Audit Trail file that contains all messages that Handler sent or received (in the chronological order).

The default value is empty string (means no audit trail files required).

Definition at line 233 of file HandlerSettings.h.

CpuIndexes auditTrailThreadAffinity

CPU affinity of the audit-trail thread.

Definition at line 236 of file HandlerSettings.h.

ConnectionRetries connectionRetries

Connection retries configuration settings.

Definition at line 184 of file HandlerSettings.h.

time_t heartbeatInterval

Specifies maximal time interval in seconds between two network packets. If no data is received during specified time frame, warning is reported.

The default value is 3.

Definition at line 154 of file HandlerSettings.h.

LogReplayInputStream* inputStream

User defined input stream for log replay logs will be ignored.

Definition at line 204 of file HandlerSettings.h.

std::string licenseDirectory

Path to the license directory.

Default value is "./" (the current directory).
A home directory also used to search a license.

Definition at line 103 of file HandlerSettings.h.

std::string logDirectory

Log files are stored in this directory.

Default value is "./" (the current directory).

Definition at line 110 of file HandlerSettings.h.

std::string logFileNamePrefix

Template of log file name without extension.

Default value is "SenafMarketDataHandlerCpp".

Definition at line 117 of file HandlerSettings.h.

LogLevel logLevel

Log verbosity.

Default value is LogLevels::Info.

Definition at line 124 of file HandlerSettings.h.

unsigned logPlayerSpeedAuxDelay

Log player speed auxilary delay.

This is an $ k $ in the formula $ mT+k $ to calculate delays between packets, where $ T $ is original delay. Default value is 0.

Definition at line 221 of file HandlerSettings.h.

float logPlayerSpeedMultiplier

Log player speed multiplier.

This is an $ m $ in the formula $ mT+k $ to calculate delays between packets, where $ T $ is original delay. Values less than 1 means reduced speed, greather than 1 means increased speed. Default value is 1.0 which means a normal speed.

Definition at line 213 of file HandlerSettings.h.

LogList logs

List of logs to be replated.

Must be stored in 'oldest to recent' order.

Definition at line 201 of file HandlerSettings.h.

std::string marketImageDirectory

Market Image (Debug) files will be stored in this directory.

The default value is "dump".

Definition at line 241 of file HandlerSettings.h.

std::string marketImageFileNamePrefix

Template of Market Image (Debug) file name without extension.

Creates Market Image file. See 5.6. Debugging and Testing Support for more details.

The default value is "File".

Definition at line 248 of file HandlerSettings.h.

std::string networkInterface

Specifies one or more network interfaces to use while joining the multicast group; use semi-colon delimited list if more than one.

On Linux the network interface is specifed by its name, on Windows - by IP address.
If the value is empty or absent then the default networking interface is used.

Definition at line 145 of file HandlerSettings.h.

ThreadAffinity processingThreadAffinity

Defines set of CPUs by their indices (starting from zero) allowed for thread used by the Handler while processing market data to be executed on.

By default set is empty thus allowing threads to be executed on any CPU available in the system.

Definition at line 164 of file HandlerSettings.h.

CpuIndexes receivingThreadAffinity

CPU affinity of the receiving thread.

Definition at line 189 of file HandlerSettings.h.

CpuIndexes sendingThreadAffinity

CPU affinity of the receiving thread.

Definition at line 194 of file HandlerSettings.h.

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