55 , stores_(other.stores_)
56 , licenseString_(other.licenseString_)
64 stores.push_back(value);
74 stores.push_back(value);
96 return licenseString_;
102 controlChange(
"Handler Settings", &LicenseSettings::assignNoControl, *
this, other);
110 stores_ = other.stores_;
111 licenseString_ = other.licenseString_;
114 LicenseStores stores_;
115 std::string licenseString_;
129 , session_(controller)
131 , bookManagement_(controller)
132 , recoveryQueueMaxSize_(1000000)
134 , logging_(controller)
135 , listeners_(controller)
136 , licenseSettings_(controller)
146 , channel_(other.channel_)
147 , feeds_(other.feeds_)
148 , session_(other.session_)
149 , tradeProcessing_(other.tradeProcessing_)
150 , bookManagement_(other.bookManagement_)
151 , recoveryQueueMaxSize_(other.recoveryQueueMaxSize_)
152 , instrumentCache_(other.instrumentCache_)
153 , logging_(other.logging_)
154 , listeners_(other.listeners_)
155 , licenseSettings_(other.licenseSettings_)
156 , configurationFile_(other.configurationFile_)
157 , dataCenter_(other.dataCenter_)
182 return configurationFile_;
216 const std::string& configurationFile,
221 "Connectivity Configuration File",
222 &HandlerSettings::assignConnectivityConfiguration,
270 return tradeProcessing_;
284 return bookManagement_;
290 return bookManagement_;
306 return recoveryQueueMaxSize_;
313 controlAssignment(
"Recovery Queue Max Size", recoveryQueueMaxSize_, queueMaxSize);
335 return instrumentCache_;
372 return licenseSettings_;
378 return licenseSettings_;
381#if !defined(ONIXS_CMEMDH_NO_DEPRECATED)
390 return logging_.debug();
400 return logging_.debug();
408 controlChange(
"Handler Settings", &HandlerSettings::assignNoControl, *
this, other);
423 UInt32 recoveryQueueMaxSize_;
424 std::string instrumentCache_;
432 std::string configurationFile_;
438 channel_ = other.channel_;
440 feeds_.assignNoControl(other.feeds_);
444 tradeProcessing_ = other.tradeProcessing_;
446 bookManagement_.assignNoControl(other.bookManagement_);
448 recoveryQueueMaxSize_ = other.recoveryQueueMaxSize_;
450 instrumentCache_ = other.instrumentCache_;
452 logging_.assignNoControl(other.logging_);
454 listeners_.assignNoControl(other.listeners_);
456 licenseSettings_.assignNoControl(other.licenseSettings_);
458 configurationFile_ = other.configurationFile_;
460 dataCenter_ = other.dataCenter_;
464 void assignConnectivityConfiguration(
const std::string& configurationFile, DataCenter::Enum dataCenter)
466 configurationFile_ = configurationFile;
468 dataCenter_ = dataCenter;
481 toStr(str, settings);
#define ONIXS_CMEMDH_NAMESPACE_BEGIN
#define ONIXS_CMEMDH_LTWT
#define ONIXS_CMEMDH_LTWT_CLASS_DECL(name)
#define ONIXS_CMEMDH_NAMESPACE_END
#define ONIXS_CMEMDH_NULLPTR
#define ONIXS_CMEMDH_EXPORTED
Parameters affecting book management machinery.
The parameters affecting all feeds involved into market data processing.
Set of listeners to be used by the Handler to reflect various aspects of market data processing.
Handler's configuration settings.
HandlerDebugLoggingSettings & debugLogging()
Parameters affecting logging at debug level.
LoggingSettings & logging()
Settings affecting logging.
const FeedSettings & feeds() const
Reference to parameters related with feeds.
TradeProcessing::Enum tradeProcessing() const
Indicates how trades are processed.
LicenseSettings & licenseSettings()
Settings affecting licensing.
HandlerSettings & operator=(const HandlerSettings &other)
Re-initializes as a copy of the other one.
const LoggingSettings & logging() const
Settings affecting logging.
HandlerSettings(SettingChangeController *controller=nullptr)
Initializes parameters with default values.
const LicenseSettings & licenseSettings() const
Settings affecting licensing.
HandlerSettings & connectivityConfigurationFile(const std::string &configurationFile, DataCenter::Enum dataCenter=DataCenter::Primary)
Path to the connectivity configuration file from which to load feed connection settings.
const std::string & instrumentCache() const
Path to the file where the Handler must store security definitions for further use instead of a live ...
const SessionSettings & session() const
Settings affecting processing session.
HandlerSettings(const HandlerSettings &other)
Initializes the instance as a copy of the other one.
const HandlerDebugLoggingSettings & debugLogging() const
Parameters affecting logging at debug level.
~HandlerSettings()
Cleans everything up.
SessionSettings & session()
Settings affecting processing session.
const HandlerListeners & listeners() const
Listeners associated with the Handler.
FeedSettings & feeds()
Reference to parameters related with feeds.
HandlerSettings & recoveryQueueMaxSize(UInt32 queueMaxSize)
Maximum number of packets to be hold in the internal queue used by the Handler while processing incom...
BookManagement & bookManagement()
Reference to parameters affecting book management.
const std::string & connectivityConfigurationFile() const
Path to the connectivity configuration file.
UInt32 recoveryQueueMaxSize() const
Maximum number of packets transmitted via incremental feed to be hold in internal queue while market ...
HandlerSettings & channel(ChannelId value)
Identifies CME market data channel.
HandlerListeners & listeners()
Listeners associated with the Handler.
ChannelId channel() const
Identifies CME market data channel.
const BookManagement & bookManagement() const
Reference to parameters affecting book management.
HandlerSettings & tradeProcessing(TradeProcessing::Enum strategy)
Defines how trades are processed.
DataCenter::Enum dataCenter() const
Identifies the data center whose parameters are to be extracted from the connectivity configuration f...
HandlerSettings & instrumentCache(const std::string &filename)
Defines path to a file to be used as instrument definition cache.
License configuration settings.
LicenseSettings & operator=(const LicenseSettings &other)
Re-initializes as a copy of the other one.
LicenseSettings(SettingChangeController *controller=nullptr)
Initializes listeners with default values.
const std::string & licenseString() const
Returns the license string.
LicenseSettings(const LicenseSettings &other)
Re-initializes settings as copies of the other ones omitting group belonging.
LicenseSettings & licenseString(const std::string &value)
Assigns the license string.
LicenseSettings & licenseStore(const std::string &value)
Assigns the path to the folder that contains license file(s).
friend class HandlerSettings
const LicenseStores & licenseStores() const
Returns the folders that contain license file(s).
LicenseSettings & addLicenseStore(const std::string &value)
Adds the path to the folder that contains license file(s).
std::vector< std::string > LicenseStores
Folders that contain license file(s).
The collection of settings affecting use of logging subsystem by the Handler.
Basic set of parameters affecting behavior of the Handler when the market data processing is performe...
void assignNoControl(const SessionSettings &other)
Re-initializes the instance as a copy of the other one and bypassing assignment control.
void controlAssignment(const Char *description, Assignee &assignee, Value value) const
Guarded assignment of the given value to the given variable.
SettingGroup(SettingChangeController *controller=nullptr)
Initializes the group of settings with the given validation services.
void controlChange(const Char *description, void(Changeable::*change)(), Changeable &changeable) const
Guarded invoke of the given routine which assumes complex change or update for the given object.
void toStr(std::string &, BookState::Enum)
Serializes book state value into a string.
std::string makeInstrumentCacheFilename(ChannelId)
Makes filename for instrument cache for the given channel.
DebugLoggingSettings HandlerDebugLoggingSettings
UInt32 ChannelId
Identifies CME channel.
To optimally service customers and meet regulatory requirements for out-of-region recovery capabiliti...
Enum
To optimally service customers and meet regulatory requirements for out-of-region recovery capabiliti...
@ Primary
Indicates the primary data center, which houses all CME applications.
Represents a service controlling change/update operations for the collections of settings.
Defines different ways trades are processed.