Share via


PartitionMoveCostDescription Constructor

Definition

Constructor for PartitionMoveCostDescription, where at least one replica's move cost value should be provided.

public PartitionMoveCostDescription (Guid partitionId, System.Fabric.MoveCost? primaryReplicaMoveCostEntry, System.Fabric.MoveCost? secondaryReplicasOrInstancesMoveCostEntry, System.Collections.Generic.IList<System.Fabric.Description.ReplicaMoveCostDescription> secondaryReplicaOrInstanceMoveCostEntriesPerNode, System.Fabric.MoveCost? auxiliaryReplicasMoveCostEntry = default, System.Collections.Generic.IList<System.Fabric.Description.ReplicaMoveCostDescription> auxiliaryReplicaMoveCostEntriesPerNode = default);
new System.Fabric.Description.PartitionMoveCostDescription : Guid * Nullable<System.Fabric.MoveCost> * Nullable<System.Fabric.MoveCost> * System.Collections.Generic.IList<System.Fabric.Description.ReplicaMoveCostDescription> * Nullable<System.Fabric.MoveCost> * System.Collections.Generic.IList<System.Fabric.Description.ReplicaMoveCostDescription> -> System.Fabric.Description.PartitionMoveCostDescription
Public Sub New (partitionId As Guid, primaryReplicaMoveCostEntry As Nullable(Of MoveCost), secondaryReplicasOrInstancesMoveCostEntry As Nullable(Of MoveCost), secondaryReplicaOrInstanceMoveCostEntriesPerNode As IList(Of ReplicaMoveCostDescription), Optional auxiliaryReplicasMoveCostEntry As Nullable(Of MoveCost) = Nothing, Optional auxiliaryReplicaMoveCostEntriesPerNode As IList(Of ReplicaMoveCostDescription) = Nothing)

Parameters

partitionId
Guid

Partition ID

primaryReplicaMoveCostEntry
Nullable<MoveCost>

Move cost entry for primary replica, can be empty.

secondaryReplicasOrInstancesMoveCostEntry
Nullable<MoveCost>

Move cost entry for all secondary replicas or instances, can be empty.

secondaryReplicaOrInstanceMoveCostEntriesPerNode
IList<ReplicaMoveCostDescription>

Move cost entries for specific secondary replica or instance, can be empty.

auxiliaryReplicasMoveCostEntry
Nullable<MoveCost>

Move cost entry for all auxiliary replicas or instances, can be empty.

auxiliaryReplicaMoveCostEntriesPerNode
IList<ReplicaMoveCostDescription>

List of move cost entries for specific auxiliary replica or instance, can be empty.

Applies to