OnixS EuroTLX MITCH Handler for C++  1.1.0.1
Public Member Functions | Public Attributes | List of all members
HandlerSettings Struct Reference

Handler base configuration settings. More...

Public Member Functions

 HandlerSettings ()
 Constructor.
 
std::string toString () const
 Returns the string representation.
 

Public Attributes

std::string licenseDirectory
 Path to the license directory.
 
std::string logDirectory
 Log files are stored in this directory.
 
std::string logFileNamePrefix
 Template of log file name without extension.
 
LogSettings::Enum logSettings
 Combine LogSettings enum values to configure the logger.
 
LogLevel::Enum logLevel
 Log verbosity. More...
 
LogFilePermission::Enum logFilePermissions
 Log file permissions. More...
 
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. More...
 
std::string networkInterfaceA
 Specifies one or more network interfaces to use while joining the multicast group A; use semi-colon delimited list if more than one. More...
 
std::string networkInterfaceB
 Specifies one or more network interfaces to use while joining the multicast group B; use semi-colon delimited list if more than one. More...
 
unsigned int maxPacketWaitingTime
 Specifies the maximum time interval (miliseconds) to wait out-of-sequence packet before treating it as totally lost. More...
 
bool useFeedA
 Option to use feed A. More...
 
bool useFeedB
 Option to use feed B. More...
 
FeedDescriptor multicastFeed
 Multicast IP Addresses.
 
ServiceDescriptor replayPrimaryService
 Primary Replay IP Addresses.
 
ServiceDescriptor recoveryPrimaryService
 Primary Recovery IP Addresses.
 
ServiceDescriptor replaySecondaryService
 Secondary Replay IP Addresses.
 
ServiceDescriptor recoverySecondaryService
 Secondary Recovery IP Addresses.
 
std::string networkInterfaceForTcpServices
 Specifies network interfaces to use while establishing tcp connection. More...
 
std::string username
 CompID assigned to the client.
 
std::string password
 Password assigned to the CompID.
 
SegmentCodes segmentCodes
 Segment codes for recovery requests.
 
InstrumentIds instrumentIds
 Instruments for recovery requests.
 
ThreadAffinity processingThreadAffinity
 Defines set of CPUs by their indices (starting from zero) allowed for each processing thread used by the Handler. More...
 
ThreadAffinity receivingThreadAffinity
 Defines set of CPUs by their indices (starting from zero) allowed for each receiving thread used by the Handler. More...
 
size_t udpSocketBufferSize
 Defines size of buffer in bytes for UDP/multicast sockets. More...
 
size_t feedInactivityTimeout
 Indicates for how long till onDepthSnapshot::onDepthOutOfDate and OrderBookListener::onOrderBookOutOfDate will be fired if no UDP data in incremental streams. More...
 
HandlerThreadModel::Enum handlerThreadModel
 Handler thread model.
 
size_t maxBooksObjectAmount
 Defines size of preallocated memory for Order Book. Default value is 100.
 
bool buildInternalOrderBooks
 Build internal books.
 
unsigned int maxConnectingAttempts
 Max number of attempts to connect replay and recovery services, default value is 3.
 
size_t minReconnectingTimeout
 Minimum timeout value between attempts to connect replay and recovery services (sec), default value is 3 sec.
 
unsigned int replayMaxPacketsNumber
 Lost packets threshold when the Handler prefers replay, should not exceed 65535.
 

Detailed Description

Handler base configuration settings.

Member Data Documentation

size_t feedInactivityTimeout

Indicates for how long till onDepthSnapshot::onDepthOutOfDate and OrderBookListener::onOrderBookOutOfDate will be fired if no UDP data in incremental streams.

Value must be specified in seconds (sec).

Note
The default value is 20 sec.
LogFilePermission::Enum logFilePermissions

Log file permissions.

Note
The default value is ReadAll | WriteOwnerOnly
LogLevel::Enum logLevel

Log verbosity.

Note
The default value is LogLevel::Info
unsigned int maxPacketWaitingTime

Specifies the maximum time interval (miliseconds) to wait out-of-sequence packet before treating it as totally lost.

Note
The default value is 500 miliseconds.
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 interfaces is specified by its name, on Windows - by IP address.

Note
If the value is empty or absent then the default networking interface is used.
std::string networkInterfaceA

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

On Linux the network interfaces is specified by its name, on Windows - by IP address.

Note
If the value is empty or absent then the networkInterface_ filled value is used.
std::string networkInterfaceB

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

On Linux the network interfaces is specified by its name, on Windows - by IP address.

Note
If the value is empty or absent then the networkInterface_ filled value is used.
std::string networkInterfaceForTcpServices

Specifies network interfaces to use while establishing tcp connection.

On Linux the network interfaces is specified by its name, on Windows - by IP address.

Note
If the value is empty or absent then the default networking interface is used.
ThreadAffinity processingThreadAffinity

Defines set of CPUs by their indices (starting from zero) allowed for each processing thread used by the Handler.

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

Defines set of CPUs by their indices (starting from zero) allowed for each receiving thread used by the Handler.

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

Defines size of buffer in bytes for UDP/multicast sockets.

Note
Default value is zero which means system default setting will be used.
bool useFeedA

Option to use feed A.

Note
The default value is 'true'.
bool useFeedB

Option to use feed B.

Note
The default value is 'true'.