ReplicaSelector Class

 

This is a helper class for selecting replicas.

Namespace:   System.Fabric.Testability
Assembly:  System.Fabric.Testability (in System.Fabric.Testability.dll)

Inheritance Hierarchy

System.Object
  System.Fabric.Testability.ReplicaSelector

Syntax

public class ReplicaSelector

Properties

Name Description
System_CAPS_pubproperty PartitionSelector

The PartitionSelector specifying the partition for which the replica is being selected by the ReplicaSelector.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

Compares whether two ReplicaSelectors are the same. (Overrides Object.Equals(Object).)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

Calls the base GetHashCode() (Overrides Object.GetHashCode().)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_static PrimaryOf(PartitionSelector)

Selects the primary replica for the given partition specified by the PartitionSelector.

System_CAPS_pubmethodSystem_CAPS_static RandomOf(PartitionSelector)

Selects a random replica for the given partition specified by the PartitionSelector.

System_CAPS_pubmethodSystem_CAPS_static RandomSecondaryOf(PartitionSelector)

Selects a random secondary replica for the given partition specified by the PartitionSelector.

System_CAPS_pubmethodSystem_CAPS_static ReplicaIdOf(PartitionSelector, Int64)

Selects a replica nased on the ReplicaId for the given partition specified by the PartitionSelector.

System_CAPS_pubmethod ToString()

String representation of the replica selector. (Overrides Object.ToString().)

Remarks

It allows the user to select replicas to be targeted by the testability APIs. The selection can be a particular replica of a partition based on the ReplicaId or Role or a random replica of the partition.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

System.Fabric.Testability Namespace

Return to top