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 | |
---|---|---|
PartitionSelector | The PartitionSelector specifying the partition for which the replica is being selected by the ReplicaSelector. |
Methods
Name | Description | |
---|---|---|
Equals(Object) | Compares whether two ReplicaSelectors are the same. (Overrides Object.Equals(Object).) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | Calls the base GetHashCode() (Overrides Object.GetHashCode().) |
|
GetType() | (Inherited from Object.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
PrimaryOf(PartitionSelector) | Selects the primary replica for the given partition specified by the PartitionSelector. |
|
RandomOf(PartitionSelector) | Selects a random replica for the given partition specified by the PartitionSelector. |
|
RandomSecondaryOf(PartitionSelector) | Selects a random secondary replica for the given partition specified by the PartitionSelector. |
|
ReplicaIdOf(PartitionSelector, Int64) | Selects a replica nased on the ReplicaId for the given partition specified by the PartitionSelector. |
|
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