Files
externals/linux/doc/Onixs.ICE.3.13.0.0/html/group__understanding_handler_states.html
2019-02-11 13:31:08 -05:00

84 lines
7.3 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++: Understanding Handler States</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++
&#160;<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&#160;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">Understanding Handler States<div class="ingroups"><a class="el" href="group__getting_started.html">Getting Started</a></div></div> </div>
</div><!--header-->
<div class="contents">
<p>Once the Handler is started, it processes securities definitions retrieved from TCP connection. Afterwards, the Handler starts listening for a book-related market data. At first, the Handler reconstructs all the books for all available securities. Once reconstruction is accomplished, the Handler listen for an incremental updates and processes them accordingly.</p>
<h1><a class="anchor" id="handlerStates"></a>
Handler States</h1>
<p>The table below describes all possible states for the Handler:</p>
<table class="doxtable">
<tr>
<td class="indexvalue"><b>State</b> </td><td class="indexvalue"><b>Description</b> </td></tr>
<tr>
<td class="indexvalue"><a class="el" href="struct_onix_s_1_1_i_c_e_1_1i_mpact_1_1_market_data_1_1_handler_states.html#a8150b7776c2a1749101acf22e868d091a4d049c6d45e08a294523df186ad77a75" title="The Handler is stopped. ">OnixS::ICE::iMpact::MarketData::HandlerStates::Stopped</a> </td><td class="indexvalue">The Handler is stopped or was not executed yet. </td></tr>
<tr>
<td class="indexvalue"><a class="el" href="struct_onix_s_1_1_i_c_e_1_1i_mpact_1_1_market_data_1_1_handler_states.html#a8150b7776c2a1749101acf22e868d091a2e4d9c8328a502cb838ae67cfe0d28d5" title="The Handler is stopping. ">OnixS::ICE::iMpact::MarketData::HandlerStates::Stopping</a> </td><td class="indexvalue">The Handler is stopping. </td></tr>
<tr>
<td class="indexvalue"><a class="el" href="struct_onix_s_1_1_i_c_e_1_1i_mpact_1_1_market_data_1_1_handler_states.html#a8150b7776c2a1749101acf22e868d091ac37ab8a82be99e808fa5ecf053075b08" title="The Handler is started but no data processing is performed yet. ">OnixS::ICE::iMpact::MarketData::HandlerStates::Started</a> </td><td class="indexvalue">The Handler is started, but no data processing is performed yet. </td></tr>
<tr>
<td class="indexvalue"><a class="el" href="struct_onix_s_1_1_i_c_e_1_1i_mpact_1_1_market_data_1_1_handler_states.html#a8150b7776c2a1749101acf22e868d091a435741bca697e0ecc40789b3e3fd092b" title="Download of security definition messages is started. ">OnixS::ICE::iMpact::MarketData::HandlerStates::SecurityDefinitionsRecoveryStarted</a> </td><td class="indexvalue">The Handler started gathering product definitions from TCP stream. </td></tr>
<tr>
<td class="indexvalue"><a class="el" href="struct_onix_s_1_1_i_c_e_1_1i_mpact_1_1_market_data_1_1_handler_states.html#a8150b7776c2a1749101acf22e868d091a18a67b8ca02e616731ecd76223d582fe" title="Download of security definition messages is finished. ">OnixS::ICE::iMpact::MarketData::HandlerStates::SecurityDefinitionsRecoveryFinished</a> </td><td class="indexvalue">The Handler accomplished processing of product definitions. In normal flow Handler moves to the <a class="el" href="struct_onix_s_1_1_i_c_e_1_1i_mpact_1_1_market_data_1_1_handler_states.html#a8150b7776c2a1749101acf22e868d091af8837a50681e16acb3a8794e4f123798" title="The correct books state is lost. ">OnixS::ICE::iMpact::MarketData::HandlerStates::BooksResynchronizationStarted</a> right after it achieves <a class="el" href="struct_onix_s_1_1_i_c_e_1_1i_mpact_1_1_market_data_1_1_handler_states.html#a8150b7776c2a1749101acf22e868d091a18a67b8ca02e616731ecd76223d582fe" title="Download of security definition messages is finished. ">OnixS::ICE::iMpact::MarketData::HandlerStates::SecurityDefinitionsRecoveryFinished</a> state. However, in certain cases (for example, in case of error while processing product definitions) the Handler may move to the <a class="el" href="struct_onix_s_1_1_i_c_e_1_1i_mpact_1_1_market_data_1_1_handler_states.html#a8150b7776c2a1749101acf22e868d091a2e4d9c8328a502cb838ae67cfe0d28d5" title="The Handler is stopping. ">OnixS::ICE::iMpact::MarketData::HandlerStates::Stopping</a> state. </td></tr>
<tr>
<td class="indexvalue"><a class="el" href="struct_onix_s_1_1_i_c_e_1_1i_mpact_1_1_market_data_1_1_handler_states.html#a8150b7776c2a1749101acf22e868d091af8837a50681e16acb3a8794e4f123798" title="The correct books state is lost. ">OnixS::ICE::iMpact::MarketData::HandlerStates::BooksResynchronizationStarted</a> </td><td class="indexvalue">The Handler switches to this state when it joins the system for a market data and starts building the books for all securities whose definitions were obtained on previous stage. Also, the Handler may move into this stage in case of message GAP detection while maintaining books. <dl class="section note"><dt>Note</dt><dd>Once the Handler moves into this state, books of all types for all securities are no longer valid and are wiped by the Handler. Since this moment Handler starts to rebuild all books from the scratch. </dd></dl>
</td></tr>
<tr>
<td class="indexvalue"><a class="el" href="struct_onix_s_1_1_i_c_e_1_1i_mpact_1_1_market_data_1_1_handler_states.html#a8150b7776c2a1749101acf22e868d091ab4a3093e115e3f27571d38112291e3ec" title="The latest books state is restored. ">OnixS::ICE::iMpact::MarketData::HandlerStates::BooksResynchronizationFinished</a> </td><td class="indexvalue">The Handler accomplished process of the book recovery. Since this moment all the books are valid and are in the up-to-date state. The Handler continues to listen for any changes in the books and notifies about updates through appropriate listeners. </td></tr>
</table>
<h1><a class="anchor" id="handlerStatesDiagram"></a>
Handler States Diagram</h1>
<div class="image">
<img src="HandlerStates.png" alt="HandlerStates.png"/>
</div>
<hr/>
<p>/** </p>
</div><!-- contents -->
</ul>
<hr class="footer"/><address class="footer"><small>&copy; <a href="http://www.onixs.biz">Onix Solutions [OnixS]</a>. All rights reserved.</small></address>
</div>
</body>
</html>