Apache Ignite.NET
Apache.Ignite.Core.Cache.Affinity.AffinityFunctionContext Class Reference

Affinity function context. More...

Public Member Functions

ICollection< IClusterNodeGetPreviousAssignment (int partition)
 Gets the affinity assignment for given partition on previous topology version. First node in returned list is a primary node, other nodes are backups. More...
 

Properties

int Backups [get]
 Gets number of backups for new assignment. More...
 
ICollection< IClusterNodeCurrentTopologySnapshot [get]
 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. More...
 
AffinityTopologyVersion CurrentTopologyVersion [get]
 Gets the current topology version. More...
 
DiscoveryEvent DiscoveryEvent [get]
 Gets the discovery event that caused the topology change. More...
 

Detailed Description

Member Function Documentation

ICollection<IClusterNode> Apache.Ignite.Core.Cache.Affinity.AffinityFunctionContext.GetPreviousAssignment ( int  partition)
Parameters
partitionThe partition to get previous assignment for.
Returns
List of nodes assigned to a given partition on previous topology version or
null
if this information is not available.

Property Documentation

int Apache.Ignite.Core.Cache.Affinity.AffinityFunctionContext.Backups
get
ICollection<IClusterNode> Apache.Ignite.Core.Cache.Affinity.AffinityFunctionContext.CurrentTopologySnapshot
get
AffinityTopologyVersion Apache.Ignite.Core.Cache.Affinity.AffinityFunctionContext.CurrentTopologyVersion
get
DiscoveryEvent Apache.Ignite.Core.Cache.Affinity.AffinityFunctionContext.DiscoveryEvent
get