66 lines
5.6 KiB
HTML
66 lines
5.6 KiB
HTML
<!-- HTML header for doxygen 1.8.7-->
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.8.11"/>
|
|
<title>OnixS ICE iMpact Multicast Feed Handler for C++: Affecting Handler behaviour</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
<link href="onixs-doxygen.css" rel="stylesheet" type="text/css"/>
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<header>
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr style="height: 56px;">
|
|
<td id="projectlogo"><a href="http://www.onixs.biz"><img alt="Logo" src="onixs.gif"/></a></td>
|
|
<td style="padding-left: 0.5em;">
|
|
<div id="projectname">OnixS ICE iMpact Multicast Feed Handler for C++
|
|
 <span id="projectnumber">3.13.0.0</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</header>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.11 -->
|
|
<div id="navrow1" class="tabs">
|
|
<ul class="tablist">
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li class="current"><a href="modules.html"><span>Modules</span></a></li>
|
|
<li><a href="annotated.html"><span>Classes</span></a></li>
|
|
</ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">Affecting Handler behaviour<div class="ingroups"><a class="el" href="group__advanced_programming.html">Advanced Programming</a></div></div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<h1><a class="anchor" id="HandlerSettingsDescription"></a>
|
|
Advanced Initialization Parameters</h1>
|
|
<p>In simplest case, Handler needs reference for a connectivity configuration to get initialized. However, there were other parameters which affect miscellaneous aspects of Handler's behaviour. These parameters are collected into the single <a class="el" href="struct_onix_s_1_1_i_c_e_1_1i_mpact_1_1_market_data_1_1_handler_settings.html" title="Defines set of settings which affect behavior of the Handler. ">OnixS::ICE::iMpact::MarketData::HandlerSettings</a> class. Instance of this class must be delivered to the Handler at the construction stage.</p>
|
|
<h1><a class="anchor" id="activatingLogging"></a>
|
|
Activating Logging in the Handler</h1>
|
|
<p><a class="el" href="struct_onix_s_1_1_i_c_e_1_1i_mpact_1_1_market_data_1_1_handler_settings.html#a459a731406775aecba537a713747b5ff" title="Log verbosity. ">OnixS::ICE::iMpact::MarketData::HandlerSettings::logLevel</a> parameter of the <a class="el" href="struct_onix_s_1_1_i_c_e_1_1i_mpact_1_1_market_data_1_1_handler_settings.html" title="Defines set of settings which affect behavior of the Handler. ">OnixS::ICE::iMpact::MarketData::HandlerSettings</a> class instructs the Handler whether it should log its events and which of events should be put into the log. By default, to provide maximum performance, logging is not performed by the Handler. However, in some cases logging becomes a useful feature. For example, log data can be used by support team to analyse and resolve miscellaneous issues occurred during execution of Handler.</p>
|
|
<h1><a class="anchor" id="specifinglicenseDirectory"></a>
|
|
Specifying License Store</h1>
|
|
<p>Since recently, the Handler uses new unified licensing services which allow to store multiple licenses for a single and multiple products in the single place. By default, the Handler looks for license at the current directory of the application which executes the Handler. However, sometimes there's a need to store license in a different place, especially when a company uses multiple Onix Solutions products. For this reason, <a class="el" href="struct_onix_s_1_1_i_c_e_1_1i_mpact_1_1_market_data_1_1_handler_settings.html" title="Defines set of settings which affect behavior of the Handler. ">OnixS::ICE::iMpact::MarketData::HandlerSettings</a> exposes <a class="el" href="struct_onix_s_1_1_i_c_e_1_1i_mpact_1_1_market_data_1_1_handler_settings.html#ad8ab1e88cd7107520b6f2c1f8da2096b" title="Path to the license directory. ">OnixS::ICE::iMpact::MarketData::HandlerSettings::licenseDirectory</a> parameter which allows to specify directory in which Handler should look for the license.</p>
|
|
<h1><a class="anchor" id="HandlerSettingsExample"></a>
|
|
Example</h1>
|
|
<p>Following example demonstrates how to construct Handler with custom options:</p>
|
|
<div class="fragment"><div class="line">HandlerSettings handlerSettings;</div><div class="line"></div><div class="line"><span class="comment">// Activates logging to get data for the Support.</span></div><div class="line">handlerSettings.logLevel = LogLevels::Info;</div><div class="line"></div><div class="line"><span class="comment">// By default, license is stored in lib folder of the distribute </span></div><div class="line"><span class="comment">// package. Instead of copying, will use original file.</span></div><div class="line">handlerSettings.licenseDirectory = <span class="stringliteral">"../license"</span>;</div><div class="line"></div><div class="line"><span class="comment">// Constructs handler with custom license root and enabled logging.</span></div><div class="line">Handler handler(handlerSettings);</div></div><!-- fragment --> </div><!-- contents -->
|
|
</ul>
|
|
<hr class="footer"/><address class="footer"><small>© <a href="http://www.onixs.biz">Onix Solutions [OnixS]</a>. All rights reserved.</small></address>
|
|
</div>
|
|
</body>
|
|
</html>
|