#include <OnixS/CME/MDH/HandlerSettings.h>
|
| | HandlerSettings (SettingChangeController *controller=nullptr) |
| | HandlerSettings (const HandlerSettings &other) |
| | ~HandlerSettings () |
| ChannelId | channel () const |
| HandlerSettings & | channel (ChannelId value) |
| const std::string & | connectivityConfigurationFile () const |
| const std::string & | connectivityConfigurationString () const |
| DataCenter::Enum | dataCenter () const |
| HandlerSettings & | connectivityConfigurationFile (const std::string &configurationFile, DataCenter::Enum dataCenter=DataCenter::Primary) |
| HandlerSettings & | connectivityConfigurationString (const std::string &configuration, DataCenter::Enum dataCenter=DataCenter::Primary) |
| const FeedSettings & | feeds () const |
| FeedSettings & | feeds () |
| SessionSettings & | session () |
| const SessionSettings & | session () const |
| HandlerListeners & | listeners () |
| const HandlerListeners & | listeners () const |
| TradeProcessing::Enum | tradeProcessing () const |
| HandlerSettings & | tradeProcessing (TradeProcessing::Enum strategy) |
| const BookManagement & | bookManagement () const |
| BookManagement & | bookManagement () |
| Messaging::UInt32 | recoveryQueueMaxSize () const |
| HandlerSettings & | recoveryQueueMaxSize (Messaging::UInt32 queueMaxSize) |
| const std::string & | instrumentCache () const |
| HandlerSettings & | instrumentCache (const std::string &filename) |
| LoggingSettings & | logging () |
| const LoggingSettings & | logging () const |
| LicenseSettings & | licenseSettings () |
| const LicenseSettings & | licenseSettings () const |
| HandlerSettings & | operator= (const HandlerSettings &other) |
| | SettingGroup (SettingChangeController *controller=nullptr) |
| | ~SettingGroup ()=default |
| template<class Assignee, class Value> |
| void | controlAssignment (const Messaging::Char *description, Assignee &assignee, Value value) const |
| template<class Changeable> |
| void | controlChange (const Messaging::Char *description, void(Changeable::*change)(), Changeable &changeable) const |
| template<class Change, class Changeable, class Arg> |
| void | controlChange (const Messaging::Char *description, Change change, Changeable &changeable, const Arg &arg) const |
| template<class Change, class Changeable, class Arg1, class Arg2> |
| void | controlChange (const Messaging::Char *description, Change change, Changeable &changeable, const Arg1 &arg1, const Arg2 &arg2) const |
Definition at line 129 of file HandlerSettings.h.
◆ HandlerSettings() [1/2]
◆ HandlerSettings() [2/2]
| HandlerSettings |
( |
const HandlerSettings & | other | ) |
|
|
inline |
Initializes the instance as a copy of the other one.
Definition at line 152 of file HandlerSettings.h.
◆ ~HandlerSettings()
◆ bookManagement() [1/2]
Reference to parameters affecting book management.
Definition at line 331 of file HandlerSettings.h.
◆ bookManagement() [2/2]
Reference to parameters affecting book management.
Definition at line 325 of file HandlerSettings.h.
◆ channel() [1/2]
◆ channel() [2/2]
Identifies CME market data channel.
- Exceptions
-
| std::runtime_error | If the setting belongs to a handler that is processing market data or being configured from another source. |
Definition at line 182 of file HandlerSettings.h.
◆ connectivityConfigurationFile() [1/2]
| const std::string & connectivityConfigurationFile |
( |
| ) |
const |
|
inline |
◆ connectivityConfigurationFile() [2/2]
Path to the connectivity configuration file from which to load feed connection settings.
The given parameter allows retrieving connectivity settings from the connectivity configuration file published by CME instead of manual setup.
- Warning
- The given parameter has lower priority comparing to feed connection settings. E.g., if connection parameters are manually set up for any of feeds, the Handler will use those parameters to connect to or join multicast groups. The given parameter value is ignored in such a case and thus connectivity configuration is not loaded from the specified file.
For certain environments CME provides additional data centers to be used in case of a disaster. The additional parameter allows specifying whether to load connection settings for either the primary or a disaster recovery data center.
- Note
- Calling this method clears connectivity configuration previously supplied through connectivityConfigurationString().
- Exceptions
-
| std::runtime_error | If the setting belongs to a handler that is processing market data or being configured from another source. |
Definition at line 235 of file HandlerSettings.h.
◆ connectivityConfigurationString() [1/2]
| const std::string & connectivityConfigurationString |
( |
| ) |
const |
|
inline |
Returns the inline connectivity configuration XML.
- Returns
- Reference to the configured XML string, or an empty string if no inline configuration is set.
Definition at line 198 of file HandlerSettings.h.
◆ connectivityConfigurationString() [2/2]
Defines inline connectivity configuration XML from which to load feed connection settings.
- Parameters
-
| configuration | Connectivity configuration XML. |
| dataCenter | Data center whose connection settings are loaded. |
- Returns
- Reference to this settings object.
- Exceptions
-
| std::runtime_error | If the setting belongs to a handler that is processing market data or being configured from another source. |
- Note
- Calling this method clears connectivity configuration previously supplied through connectivityConfigurationFile(). Connectivity configuration has lower priority than manually configured feed connection settings. The most recently called connectivity configuration setter determines the data center.
Definition at line 258 of file HandlerSettings.h.
◆ dataCenter()
Identifies the data center selected for connectivity configuration.
- Returns
- Data center used when loading settings from a connectivity configuration file or inline XML.
- Note
- A connectivity configuration may not include attributes for all kinds of data centers.
Definition at line 206 of file HandlerSettings.h.
◆ feeds() [1/2]
◆ feeds() [2/2]
◆ instrumentCache() [1/2]
| const std::string & instrumentCache |
( |
| ) |
const |
|
inline |
Path to the file where the Handler must store security definitions for further use instead of a live instrument feed while recovering definitions due to late join.
If path is not defined, the Handler will not cache instrument definitions.
- Note
- The default value is empty string.
- Warning
- If this option is activated, then it is recommended to remove the cache file weekly to start the trading week with the fresh copy of security definitions.
Definition at line 378 of file HandlerSettings.h.
◆ instrumentCache() [2/2]
Defines path to a file to be used as instrument definition cache.
Instrument definition cache is used to recover instrument definitions at the beginning of market data processing session without connecting to live instrument recovery feeds. Later, the Handler puts the incoming instrument definitions received via incremental feeds into the given file.
- Note
- The Handler may recover instrument definitions stored in FIX (tag=value) format in a 'secdef.dat' file exposed by the CME via public FTP. However, the file won't be updated during further market data processing.
- Exceptions
-
| std::runtime_error | If the setting belongs to a handler that is processing market data or being configured from another source. |
Definition at line 397 of file HandlerSettings.h.
◆ licenseSettings() [1/2]
◆ licenseSettings() [2/2]
◆ listeners() [1/2]
◆ listeners() [2/2]
◆ logging() [1/2]
◆ logging() [2/2]
◆ operator=()
Re-initializes as a copy of the other one.
- Exceptions
-
| std::runtime_error | If the setting belongs to a handler that is processing market data or being configured from another source. |
Definition at line 455 of file HandlerSettings.h.
◆ recoveryQueueMaxSize() [1/2]
Maximum number of packets transmitted via incremental feed to be hold in internal queue while market state is recovered from snapshots.
When Handler recovers order books from snapshots, the given parameter limits the size of the internal queue used by the Handler to keep packets coming from incremental feeds. Upon reaching limit, newer packets substitute older ones.
- Note
- The default value is 1000000.
Definition at line 347 of file HandlerSettings.h.
◆ recoveryQueueMaxSize() [2/2]
Maximum number of packets to be hold in the internal queue used by the Handler while processing incoming data.
- Exceptions
-
| std::runtime_error | If the setting belongs to a handler that is processing market data or being configured from another source. |
Definition at line 356 of file HandlerSettings.h.
◆ session() [1/2]
◆ session() [2/2]
◆ tradeProcessing() [1/2]
◆ tradeProcessing() [2/2]
Defines how trades are processed.
- Exceptions
-
| std::runtime_error | If the setting belongs to a handler that is processing market data or being configured from another source. |
Definition at line 317 of file HandlerSettings.h.