#include <OnixS/Eurex/Trading/HandlerSettings.h>
Public Member Functions | |
| HandlerSettings () | |
| HandlerSettings (const HandlerSettings &) | |
| std::string | toString () const |
Public Attributes | |
| std::string | licenseString |
| std::string | licenseDirectory |
| std::string | logDirectory |
| std::string | logFileNamePrefix |
| LogSettings::Enum | logSettings |
| LogLevel::Enum | logLevel |
| int | receivingTimeoutMs |
| int | sendingTimeoutMs |
| CpuIndexes | receivingThreadAffinity |
| CpuIndexes | sendingThreadAffinity |
| CpuIndexes | auditTrailThreadAffinity |
| ConnectionRetries | connectionRetries |
| std::string | auditTrailDirectory |
| std::string | auditTrailFile |
| std::string | auditTrailFileNamePrefix |
| AuditTrailMode::Enum | auditTrailMode |
| size_t | throttleMessageMargin |
| bool | treatReceiverInactivityAsWarning |
| bool | scramblePassword |
| unsigned | reasonableTransmissionTime |
| bool | sslEnabled |
Definition at line 96 of file HandlerSettings.h.
| HandlerSettings | ( | ) |
Constructor.
| HandlerSettings | ( | const HandlerSettings & | ) |
Copy constructor.
| std::string toString | ( | ) | const |
Returns the string representation.
| std::string auditTrailDirectory |
Audit Trail files are stored in this directory.
Definition at line 164 of file HandlerSettings.h.
| std::string auditTrailFile |
Definition at line 169 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).
Definition at line 177 of file HandlerSettings.h.
| AuditTrailMode::Enum auditTrailMode |
| CpuIndexes auditTrailThreadAffinity |
CPU affinity of the audit-trail thread.
Definition at line 154 of file HandlerSettings.h.
| ConnectionRetries connectionRetries |
Connection retries configuration settings.
Definition at line 159 of file HandlerSettings.h.
| std::string licenseDirectory |
Path to the license directory.
Definition at line 115 of file HandlerSettings.h.
| std::string licenseString |
Content of the license file as a string.
Definition at line 110 of file HandlerSettings.h.
| std::string logDirectory |
Log files are stored in this directory.
Definition at line 120 of file HandlerSettings.h.
| std::string logFileNamePrefix |
Template of log file name without extension.
Definition at line 125 of file HandlerSettings.h.
| LogLevel::Enum logLevel |
Log verbosity.
Definition at line 135 of file HandlerSettings.h.
| LogSettings::Enum logSettings |
Combine LogSettings enum values to configure the logger.
Definition at line 130 of file HandlerSettings.h.
| unsigned reasonableTransmissionTime |
Reasonable transmission time, as a percentage of the heartbeat interval.
The Handler reports receiver inactivity when no data arrives during the heartbeat interval from the logon response plus this percentage of it. The gateway can space its heartbeat notifications somewhat wider than the interval, so a small value can drop a healthy session.
Definition at line 235 of file HandlerSettings.h.
| CpuIndexes receivingThreadAffinity |
CPU affinity of the receiving thread.
Definition at line 148 of file HandlerSettings.h.
| int receivingTimeoutMs |
Receiving timeout in milliseconds.
Definition at line 140 of file HandlerSettings.h.
| bool scramblePassword |
This flag is used to control the Handler's behavior whether to scramble passwords in the log and audit files.
false. Definition at line 225 of file HandlerSettings.h.
| CpuIndexes sendingThreadAffinity |
CPU affinity of the receiving thread.
Definition at line 151 of file HandlerSettings.h.
| int sendingTimeoutMs |
Sending timeout in milliseconds.
Definition at line 145 of file HandlerSettings.h.
| bool sslEnabled |
Is SSL enabled for the connection to exchange?
true on an older OpenSSL version. false. Definition at line 242 of file HandlerSettings.h.
| size_t throttleMessageMargin |
Throttle message margin. Transaction limit will be reduced by this value.
For example, if Eurex notify that transaction limit is 20 messages and this Handler's setting isn't changed (by default value is 3), then transaction limit for Handler is 20 - 3 = 17 messages.
Eurex counts requests by the time they enter the gateway, so jitter on the network path can bunch requests that the Handler spaced out. If Eurex rejects requests with ThrottleLimitExceeded although the Handler keeps to its limit, for example over a VPN or a wide-area link, raise the margin, for example to 10, and then lower it step by step for as long as no such rejects occur. If the first non-zero limit the Handler receives does not exceed the margin, the logon fails. See Throttling.
Definition at line 198 of file HandlerSettings.h.
| bool treatReceiverInactivityAsWarning |
This flag is used to control the Handler's behavior when a connection is not able to receive data from a network.
Absence of data could be caused by network or exchange issues. If server stopped sending data due to internal issues but underlying TCP connection is not broken, it could make sense to switch to manual control and use this option.
By default, the Handler will call error callback and restart the connection. If this flag is set to true, only warning callback will be called and the Handler continue to work.
false. Definition at line 218 of file HandlerSettings.h.