#include <OnixS/CME/ConflatedTCP/SessionSettings.h>
Definition at line 38 of file SessionSettings.h.
const std::string& accessKey |
( |
| ) |
const |
|
inline |
- Returns
- the access key that was assigned by the exchange.
The default value is empty.
Definition at line 72 of file SessionSettings.h.
Sets the access key that was assigned by the exchange.
Adds the path to the folder that contains license file(s).
unsigned asyncFileBasedStorageQueueMaxSize |
( |
| ) |
const |
|
inline |
- Returns
- the maximum size of the asynchronous session storage queue.
By default, the size is unlimited.
Definition at line 264 of file SessionSettings.h.
Sets the maximum size of the asynchronous session storage queue.
const CpuIndexes& asyncFileBasedStorageThreadAffinity |
( |
| ) |
const |
|
inline |
- Returns
- the CPU index(es) for affinity of the asynchronous session storage threads.
By default, the affinity is not set.
Definition at line 276 of file SessionSettings.h.
Specifies the CPU index(es) for affinity of the asynchronous session storage threads.
Sets the segment size for file-based session storage.
const std::string& firmId |
( |
| ) |
const |
|
inline |
- Returns
- the firm id that was assigned by the exchange.
The default value is empty.
Definition at line 60 of file SessionSettings.h.
Sets the firm id that was assigned by the exchange.
bool ignoreFileBasedStorageIntegrityErrors |
( |
| ) |
const |
|
inline |
Sets the file-based storage integrity errors checking mode.
unsigned keepAliveInterval |
( |
| ) |
const |
|
inline |
Sets the longest time in milliseconds the client system can remain silent before sending a message.
- Note
- Allowed range is between
5000
- 60000
. Any value outside this range will be rejected.
unsigned licenseAlertingDaysBeforeExpiration |
( |
| ) |
const |
|
inline |
Sets the number of days to alert before the license expiration.
If the amount of remaining license days is less or equal to this number, then the warning is reported to the Handler's log.
The verification is performed during the Session::connect call.
Definition at line 186 of file SessionSettings.h.
Sets the path to the folder that contains license file(s).
- Returns
- path(s) to the folder that contains license file(s).
The default value is '.'.
Definition at line 166 of file SessionSettings.h.
Loads the settings from the given configuration file.
- See also
- Key
const std::string& localNetworkInterface |
( |
| ) |
const |
|
inline |
- Returns
- The interface name or IP-address from which the Handler connects to the counterparty.
The default value is empty.
Definition at line 195 of file SessionSettings.h.
Specifies the local interface from which the Handler connects to the counterparty.
Each local interface specification could specify the local IP address and port. For instance, localhost
and 192.168.0.1:4501
are valid values.
bool localTimeUsage |
( |
| ) |
const |
|
inline |
Specifies the usage of the local time in Handler events and log files.
If it is true
, then the local time is used, otherwise - UTC.
bool logBeforeSending |
( |
| ) |
const |
|
inline |
Controls the order of logging and sending outbound messages.
- Parameters
-
before | if 'true' then outbound messages are logged before sending. |
const std::string& logFileName |
( |
| ) |
const |
|
inline |
- Returns
- the Handler log file name.
The default value is HandlerLog.txt
.
Definition at line 210 of file SessionSettings.h.
Specifies the Handler log file name.
unsigned messageGrouping |
( |
| ) |
const |
|
inline |
- Returns
- the message grouping mode.
0
means default grouping - the messages are sent immediately, and pending messages (if any) are grouped till reaching of TCP buffer size.
1
means the messages are sent immediately and never grouped.
2
(or higher) means the messages are sent immediately, and pending messages are grouped by 2 (or higher).
The defaul value is Default::MessageGrouping.
Definition at line 140 of file SessionSettings.h.
Sets the message grouping mode.
unsigned reasonableTransmissionTime |
( |
| ) |
const |
|
inline |
Sets the reasonable transmission time - as the percentage from the KeepAliveInterval
value.
unsigned receiveSpinningTimeout |
( |
| ) |
const |
|
inline |
Sets the receive spinning timeout (microseconds).
unsigned reconnectAttempts |
( |
| ) |
const |
|
inline |
Sets the maximum number of tries to restore the telecommunications link.
unsigned reconnectInterval |
( |
| ) |
const |
|
inline |
Sets the time interval between retries to restore the telecommunications link (seconds).
Resets the settings to the default values.
const std::string& secretKey |
( |
| ) |
const |
|
inline |
- Returns
- the secret key that was assigned by the exchange.
The default value is empty.
Definition at line 84 of file SessionSettings.h.
Sets the secret key that was assigned by the exchange.
unsigned sendSpinningTimeout |
( |
| ) |
const |
|
inline |
Sets the send spinning timeout (microseconds).
const std::string& sessionId |
( |
| ) |
const |
|
inline |
- Returns
- the session id that was assigned by the exchange.
The default value is empty.
Definition at line 48 of file SessionSettings.h.
Sets the session id that was assigned by the exchange.
int socketReceiveBufferSize |
( |
| ) |
const |
|
inline |
Sets the socket receive buffer size.
- Parameters
-
int socketSendBufferSize |
( |
| ) |
const |
|
inline |
- Returns
- the size of the socket send buffer size.
The default value is Default::SocketSedndBufferSize.
Definition at line 371 of file SessionSettings.h.
Sets the size of the socket send buffer size.
- Parameters
-
const std::string& storageDirectory |
( |
| ) |
const |
|
inline |
- Returns
- the Session Storage directory.
Inbound and outbound messages, session's state data and the Handler log file are stored in this directory.
The default value is MsgStorage
.
Definition at line 224 of file SessionSettings.h.
Sets the Session Storage directory.
Inbound and outbound messages, session's state data and the Handler log file are stored in this directory.
bool tcpNoDelayOption |
( |
| ) |
const |
|
inline |
Sets the value of the option to improve latency at the expense of message throughput (the TCP_NODELAY
socket option).
Sets the threading model.
Sets the thread pool affinity.
int threadPoolPolicy |
( |
| ) |
const |
|
inline |
Sets the thread pool policy.
int threadPoolPriority |
( |
| ) |
const |
|
inline |
Sets the thread pool priority.
unsigned threadPoolSize |
( |
| ) |
const |
|
inline |
Sets the size of the shared thread pool.
std::string toString |
( |
| ) |
const |
- Returns
- the human-friendly description.
const unsigned MaxSpinningTimeoutUsec = 1000000 |
|
static |
const int UseOsDefaultSocketBufferSize = -1 |
|
static |
Specifies the usage of the operating system default socket buffer size.
Definition at line 338 of file SessionSettings.h.
The documentation for this class was generated from the following file: