blob: b316a63524e220762935c6772ea3af88a62e17ec [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="canonical" href="https://ignite.apache.org/releases/2.2.0/dotnetdoc/class_apache_1_1_ignite_1_1_core_1_1_cache_1_1_affinity_1_1_affinity_function_context.html" />
<META NAME="ROBOTS" CONTENT="NOINDEX">
<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.9.1"/>
<title>Apache Ignite.NET: Apache.Ignite.Core.Cache.Affinity.AffinityFunctionContext Class Reference</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="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-61232409-1', 'auto');
ga('send', 'pageview');
</script></head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="ignite_logo.png"/></td>
<td style="padding-left: 0.5em;">
<div id="projectname">Apache Ignite.NET
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_apache_1_1_ignite_1_1_core_1_1_cache_1_1_affinity_1_1_affinity_function_context.html','');});
</script>
<div id="doc-content">
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#properties">Properties</a> &#124;
<a href="class_apache_1_1_ignite_1_1_core_1_1_cache_1_1_affinity_1_1_affinity_function_context-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">Apache.Ignite.Core.Cache.Affinity.AffinityFunctionContext Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Affinity function context.
<a href="class_apache_1_1_ignite_1_1_core_1_1_cache_1_1_affinity_1_1_affinity_function_context.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a1bd5b8cd5baca754f0b54e7efb3d6d1e"><td class="memItemLeft" align="right" valign="top">ICollection&lt; <a class="el" href="interface_apache_1_1_ignite_1_1_core_1_1_cluster_1_1_i_cluster_node.html">IClusterNode</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_apache_1_1_ignite_1_1_core_1_1_cache_1_1_affinity_1_1_affinity_function_context.html#a1bd5b8cd5baca754f0b54e7efb3d6d1e">GetPreviousAssignment</a> (int partition)</td></tr>
<tr class="memdesc:a1bd5b8cd5baca754f0b54e7efb3d6d1e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the affinity assignment for given partition on previous topology version. First node in returned list is a primary node, other nodes are backups. <a href="#a1bd5b8cd5baca754f0b54e7efb3d6d1e">More...</a><br /></td></tr>
<tr class="separator:a1bd5b8cd5baca754f0b54e7efb3d6d1e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="properties"></a>
Properties</h2></td></tr>
<tr class="memitem:ad084a4dcadf7a279e467bb2a01f78e3a"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_apache_1_1_ignite_1_1_core_1_1_cache_1_1_affinity_1_1_affinity_function_context.html#ad084a4dcadf7a279e467bb2a01f78e3a">Backups</a><code> [get]</code></td></tr>
<tr class="memdesc:ad084a4dcadf7a279e467bb2a01f78e3a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets number of backups for new assignment. <a href="#ad084a4dcadf7a279e467bb2a01f78e3a">More...</a><br /></td></tr>
<tr class="separator:ad084a4dcadf7a279e467bb2a01f78e3a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a31783d0cd656df28500d096db524c5da"><td class="memItemLeft" align="right" valign="top">ICollection&lt; <a class="el" href="interface_apache_1_1_ignite_1_1_core_1_1_cluster_1_1_i_cluster_node.html">IClusterNode</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_apache_1_1_ignite_1_1_core_1_1_cache_1_1_affinity_1_1_affinity_function_context.html#a31783d0cd656df28500d096db524c5da">CurrentTopologySnapshot</a><code> [get]</code></td></tr>
<tr class="memdesc:a31783d0cd656df28500d096db524c5da"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the current topology snapshot. Snapshot will contain only nodes on which the particular cache is configured. List of passed nodes is guaranteed to be sorted in a same order on all nodes on which partition assignment is performed. <a href="#a31783d0cd656df28500d096db524c5da">More...</a><br /></td></tr>
<tr class="separator:a31783d0cd656df28500d096db524c5da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ace703547292dae0d64302639b15c2658"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_apache_1_1_ignite_1_1_core_1_1_cache_1_1_affinity_1_1_affinity_topology_version.html">AffinityTopologyVersion</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_apache_1_1_ignite_1_1_core_1_1_cache_1_1_affinity_1_1_affinity_function_context.html#ace703547292dae0d64302639b15c2658">CurrentTopologyVersion</a><code> [get]</code></td></tr>
<tr class="memdesc:ace703547292dae0d64302639b15c2658"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the current topology version. <a href="#ace703547292dae0d64302639b15c2658">More...</a><br /></td></tr>
<tr class="separator:ace703547292dae0d64302639b15c2658"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5ade7db9fd7d971cdaa682dd38822ee0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_apache_1_1_ignite_1_1_core_1_1_events_1_1_discovery_event.html">DiscoveryEvent</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_apache_1_1_ignite_1_1_core_1_1_cache_1_1_affinity_1_1_affinity_function_context.html#a5ade7db9fd7d971cdaa682dd38822ee0">DiscoveryEvent</a><code> [get]</code></td></tr>
<tr class="memdesc:a5ade7db9fd7d971cdaa682dd38822ee0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the discovery event that caused the topology change. <a href="#a5ade7db9fd7d971cdaa682dd38822ee0">More...</a><br /></td></tr>
<tr class="separator:a5ade7db9fd7d971cdaa682dd38822ee0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"></div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a1bd5b8cd5baca754f0b54e7efb3d6d1e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ICollection&lt;<a class="el" href="interface_apache_1_1_ignite_1_1_core_1_1_cluster_1_1_i_cluster_node.html">IClusterNode</a>&gt; Apache.Ignite.Core.Cache.Affinity.AffinityFunctionContext.GetPreviousAssignment </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>partition</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">partition</td><td>The partition to get previous assignment for.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>List of nodes assigned to a given partition on previous topology version or <div class="fragment"><div class="line">null</div>
</div><!-- fragment --> if this information is not available. </dd></dl>
</div>
</div>
<h2 class="groupheader">Property Documentation</h2>
<a class="anchor" id="ad084a4dcadf7a279e467bb2a01f78e3a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int Apache.Ignite.Core.Cache.Affinity.AffinityFunctionContext.Backups</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a31783d0cd656df28500d096db524c5da"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">ICollection&lt;<a class="el" href="interface_apache_1_1_ignite_1_1_core_1_1_cluster_1_1_i_cluster_node.html">IClusterNode</a>&gt; Apache.Ignite.Core.Cache.Affinity.AffinityFunctionContext.CurrentTopologySnapshot</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="ace703547292dae0d64302639b15c2658"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="struct_apache_1_1_ignite_1_1_core_1_1_cache_1_1_affinity_1_1_affinity_topology_version.html">AffinityTopologyVersion</a> Apache.Ignite.Core.Cache.Affinity.AffinityFunctionContext.CurrentTopologyVersion</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a5ade7db9fd7d971cdaa682dd38822ee0"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="class_apache_1_1_ignite_1_1_core_1_1_events_1_1_discovery_event.html">DiscoveryEvent</a> Apache.Ignite.Core.Cache.Affinity.AffinityFunctionContext.DiscoveryEvent</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="namespace_apache.html">Apache</a></li><li class="navelem"><a class="el" href="namespace_apache_1_1_ignite.html">Ignite</a></li><li class="navelem"><a class="el" href="namespace_apache_1_1_ignite_1_1_core.html">Core</a></li><li class="navelem"><a class="el" href="namespace_apache_1_1_ignite_1_1_core_1_1_cache.html">Cache</a></li><li class="navelem"><a class="el" href="namespace_apache_1_1_ignite_1_1_core_1_1_cache_1_1_affinity.html">Affinity</a></li><li class="navelem"><a class="el" href="class_apache_1_1_ignite_1_1_core_1_1_cache_1_1_affinity_1_1_affinity_function_context.html">AffinityFunctionContext</a></li>
<li class="footer">Generated on Fri Sep 15 2017 11:37:29 for Apache Ignite.NET by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.9.1 </li>
</ul>
</div>
</body>
</html>