Search Results for

    Show / Hide Table of Contents

    Class AffinityFunctionContext

    Affinity function context.

    Inheritance
    System.Object
    AffinityFunctionContext
    Namespace: Apache.Ignite.Core.Cache.Affinity
    Assembly: Apache.Ignite.Core.dll
    Syntax
    public class AffinityFunctionContext : object

    Properties

    Backups

    Gets number of backups for new assignment.

    Declaration
    public int Backups { get; }
    Property Value
    Type Description
    System.Int32

    CurrentTopologySnapshot

    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.

    Declaration
    public ICollection<IClusterNode> CurrentTopologySnapshot { get; }
    Property Value
    Type Description
    ICollection<IClusterNode>

    CurrentTopologyVersion

    Gets the current topology version.

    Declaration
    public AffinityTopologyVersion CurrentTopologyVersion { get; }
    Property Value
    Type Description
    AffinityTopologyVersion

    DiscoveryEvent

    Gets the discovery event that caused the topology change.

    Declaration
    public DiscoveryEvent DiscoveryEvent { get; }
    Property Value
    Type Description
    DiscoveryEvent

    Methods

    GetPreviousAssignment(Int32)

    Gets the affinity assignment for given partition on previous topology version. First node in returned list is a primary node, other nodes are backups.

    Declaration
    public ICollection<IClusterNode> GetPreviousAssignment(int partition)
    Parameters
    Type Name Description
    System.Int32 partition

    The partition to get previous assignment for.

    Returns
    Type Description
    ICollection<IClusterNode>

    List of nodes assigned to a given partition on previous topology version or

    null
    if this information is not available.

    In This Article
    Back to top © 2015 - 2019 The Apache Software Foundation