Classes | |
struct | Default |
struct | Key |
Public Types | |
typedef std::vector< std::string > | LicenseStores |
Static Public Attributes | |
static const unsigned | MaxSpinningTimeoutUsec = 1000000 |
static const int | UseOsDefaultSocketBufferSize = -1 |
Definition at line 38 of file SessionSettings.h.
typedef std::vector<std::string> LicenseStores |
Folders that contain license file(s).
Definition at line 160 of file SessionSettings.h.
SessionSettings | ( | ) |
|
inline |
The default value is empty.
Definition at line 72 of file SessionSettings.h.
SessionSettings & accessKey | ( | const std::string & | value | ) |
Sets the access key that was assigned by the exchange.
SessionSettings & addLicenseStore | ( | const std::string & | value | ) |
Adds the path to the folder that contains license file(s).
|
inline |
By default, the size is unlimited.
Definition at line 264 of file SessionSettings.h.
SessionSettings & asyncFileBasedStorageQueueMaxSize | ( | unsigned | value | ) |
Sets the maximum size of the asynchronous session storage queue.
|
inline |
By default, the affinity is not set.
Definition at line 276 of file SessionSettings.h.
SessionSettings & asyncFileBasedStorageThreadAffinity | ( | const CpuIndexes & | cpuIndexes | ) |
Specifies the CPU index(es) for affinity of the asynchronous session storage threads.
|
inline |
The defaul value is Default::FileBasedStorageSegmentSize.
Definition at line 252 of file SessionSettings.h.
SessionSettings & fileBasedStorageSegmentSize | ( | Messaging::UInt64 | value | ) |
Sets the segment size for file-based session storage.
|
inline |
The default value is empty.
Definition at line 60 of file SessionSettings.h.
SessionSettings & firmId | ( | const std::string & | value | ) |
Sets the firm id that was assigned by the exchange.
|
inline |
The defaul value is Default::IgnoreFileBasedStorageIntegrityErrors.
Definition at line 291 of file SessionSettings.h.
SessionSettings & ignoreFileBasedStorageIntegrityErrors | ( | bool | ) |
Sets the file-based storage integrity errors checking mode.
|
inline |
The default value is Default::KeepAliveInterval.
Definition at line 440 of file SessionSettings.h.
SessionSettings & keepAliveInterval | ( | unsigned | milliseconds | ) |
Sets the longest time in milliseconds the client system can remain silent before sending a message.
|
inline |
The defaul value is Default::LicenseAlertingDaysBeforeExpiration.
Definition at line 175 of file SessionSettings.h.
|
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.
SessionSettings & licenseStore | ( | const std::string & | value | ) |
Sets the path to the folder that contains license file(s).
|
inline |
The default value is '.'.
Definition at line 166 of file SessionSettings.h.
SessionSettings & load | ( | const std::string & | configFile | ) |
Loads the settings from the given configuration file.
|
inline |
The default value is empty.
Definition at line 195 of file SessionSettings.h.
SessionSettings & localNetworkInterface | ( | const std::string & | value | ) |
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.
|
inline |
The defaul value is Default::LocalTimeUsage.
Definition at line 238 of file SessionSettings.h.
SessionSettings & localTimeUsage | ( | bool | ) |
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.
|
inline |
The defaul value is Default::LogBeforeSending.
Definition at line 303 of file SessionSettings.h.
SessionSettings & logBeforeSending | ( | bool | before | ) |
Controls the order of logging and sending outbound messages.
before | if 'true' then outbound messages are logged before sending. |
|
inline |
The default value is HandlerLog.txt.
Definition at line 210 of file SessionSettings.h.
SessionSettings & logFileName | ( | const std::string & | value | ) |
Specifies the Handler log file name.
|
inline |
The defaul value is Default::MessageGrouping.
Definition at line 140 of file SessionSettings.h.
SessionSettings & messageGrouping | ( | unsigned | value | ) |
Sets the message grouping mode.
|
inline |
The defaul value is Default::ReasonableTransmissionTime.
Definition at line 359 of file SessionSettings.h.
SessionSettings & reasonableTransmissionTime | ( | unsigned | percentage | ) |
Sets the reasonable transmission time - as the percentage from the KeepAliveInterval value.
|
inline |
The defaul value is Default::ReceiveSpinningTimeout.
Definition at line 111 of file SessionSettings.h.
SessionSettings & receiveSpinningTimeout | ( | unsigned | usecTimeout | ) |
Sets the receive spinning timeout (microseconds).
|
inline |
The defaul value is Default::ReconnectAttempts.
Definition at line 317 of file SessionSettings.h.
SessionSettings & reconnectAttempts | ( | unsigned | reconnectAttempts | ) |
Sets the maximum number of tries to restore the telecommunications link.
|
inline |
The defaul value is Default::ReconnectInterval.
Definition at line 329 of file SessionSettings.h.
SessionSettings & reconnectInterval | ( | unsigned | value | ) |
Sets the time interval between retries to restore the telecommunications link (seconds).
SessionSettings & resetToDefaults | ( | ) |
Resets the settings to the default values.
|
inline |
The default value is empty.
Definition at line 84 of file SessionSettings.h.
SessionSettings & secretKey | ( | const std::string & | value | ) |
Sets the secret key that was assigned by the exchange.
|
inline |
The defaul value is Default::SendSpinningTimeout.
Definition at line 123 of file SessionSettings.h.
SessionSettings & sendSpinningTimeout | ( | unsigned | usecTimeout | ) |
Sets the send spinning timeout (microseconds).
|
inline |
The default value is empty.
Definition at line 48 of file SessionSettings.h.
SessionSettings & sessionId | ( | const std::string & | value | ) |
Sets the session id that was assigned by the exchange.
|
inline |
The default value is Default::SocketReceiveBufferSize.
Definition at line 344 of file SessionSettings.h.
SessionSettings & socketReceiveBufferSize | ( | int | bufferSize | ) |
Sets the socket receive buffer size.
bufferSize | the size of the socket receive buffer size. If SessionSettings::UseOsDefaultSocketBufferSize then the default operating system value is used. |
|
inline |
The default value is Default::SocketSedndBufferSize.
Definition at line 371 of file SessionSettings.h.
SessionSettings & socketSendBufferSize | ( | int | bufferSize | ) |
Sets the size of the socket send buffer size.
bufferSize | the size of the socket send buffer size. If SessionSettings::UseOsDefaultSocketBufferSize then the default operating system value is used. |
|
inline |
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.
SessionSettings & storageDirectory | ( | const std::string & | value | ) |
Sets the Session Storage directory.
Inbound and outbound messages, session's state data and the Handler log file are stored in this directory.
|
inline |
The default value is Default::TcpNoDelayOption.
Definition at line 416 of file SessionSettings.h.
SessionSettings & tcpNoDelayOption | ( | bool | value | ) |
Sets the value of the option to improve latency at the expense of message throughput (the TCP_NODELAY socket option).
|
inline |
The defaul value is Default::ThreadingModelValue.
Definition at line 96 of file SessionSettings.h.
SessionSettings & threadingModel | ( | ThreadingModel::Enum | value | ) |
Sets the threading model.
|
inline |
Definition at line 384 of file SessionSettings.h.
SessionSettings & threadPoolAffinity | ( | const CpuIndexes & | cpuIndexes | ) |
Sets the thread pool affinity.
|
inline |
Definition at line 404 of file SessionSettings.h.
SessionSettings & threadPoolPolicy | ( | int | policy | ) |
Sets the thread pool policy.
|
inline |
Definition at line 394 of file SessionSettings.h.
SessionSettings & threadPoolPriority | ( | int | priority | ) |
Sets the thread pool priority.
|
inline |
The default value is Default::ThreadPoolSize.
Definition at line 428 of file SessionSettings.h.
SessionSettings & threadPoolSize | ( | unsigned | numberOfThreads | ) |
Sets the size of the shared thread pool.
std::string toString | ( | ) | const |
|
static |
The maximum spinning timeout (microseconds).
Definition at line 105 of file SessionSettings.h.
|
static |
Specifies the usage of the operating system default socket buffer size.
Definition at line 338 of file SessionSettings.h.