Freigeben über


ArmServiceFabricManagedClustersModelFactory.StatefulServiceProperties Method

Definition

Initializes a new instance of StatefulServiceProperties.

public static Azure.ResourceManager.ServiceFabricManagedClusters.Models.StatefulServiceProperties StatefulServiceProperties (string placementConstraints = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceCorrelation> correlationScheme = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceLoadMetric> serviceLoadMetrics = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServicePlacementPolicy> servicePlacementPolicies = default, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedServiceMoveCost? defaultMoveCost = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceScalingPolicy> scalingPolicies = default, string provisioningState = default, string serviceTypeName = default, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServicePartitionScheme partitionDescription = default, Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServicePackageActivationMode? servicePackageActivationMode = default, string serviceDnsName = default, bool? hasPersistedState = default, int? targetReplicaSetSize = default, int? minReplicaSetSize = default, TimeSpan? replicaRestartWaitDuration = default, TimeSpan? quorumLossWaitDuration = default, TimeSpan? standByReplicaKeepDuration = default, TimeSpan? servicePlacementTimeLimit = default);
static member StatefulServiceProperties : string * seq<Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceCorrelation> * seq<Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceLoadMetric> * seq<Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServicePlacementPolicy> * Nullable<Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedServiceMoveCost> * seq<Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceScalingPolicy> * string * string * Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServicePartitionScheme * Nullable<Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServicePackageActivationMode> * string * Nullable<bool> * Nullable<int> * Nullable<int> * Nullable<TimeSpan> * Nullable<TimeSpan> * Nullable<TimeSpan> * Nullable<TimeSpan> -> Azure.ResourceManager.ServiceFabricManagedClusters.Models.StatefulServiceProperties
Public Shared Function StatefulServiceProperties (Optional placementConstraints As String = Nothing, Optional correlationScheme As IEnumerable(Of ManagedServiceCorrelation) = Nothing, Optional serviceLoadMetrics As IEnumerable(Of ManagedServiceLoadMetric) = Nothing, Optional servicePlacementPolicies As IEnumerable(Of ManagedServicePlacementPolicy) = Nothing, Optional defaultMoveCost As Nullable(Of ServiceFabricManagedServiceMoveCost) = Nothing, Optional scalingPolicies As IEnumerable(Of ManagedServiceScalingPolicy) = Nothing, Optional provisioningState As String = Nothing, Optional serviceTypeName As String = Nothing, Optional partitionDescription As ManagedServicePartitionScheme = Nothing, Optional servicePackageActivationMode As Nullable(Of ManagedServicePackageActivationMode) = Nothing, Optional serviceDnsName As String = Nothing, Optional hasPersistedState As Nullable(Of Boolean) = Nothing, Optional targetReplicaSetSize As Nullable(Of Integer) = Nothing, Optional minReplicaSetSize As Nullable(Of Integer) = Nothing, Optional replicaRestartWaitDuration As Nullable(Of TimeSpan) = Nothing, Optional quorumLossWaitDuration As Nullable(Of TimeSpan) = Nothing, Optional standByReplicaKeepDuration As Nullable(Of TimeSpan) = Nothing, Optional servicePlacementTimeLimit As Nullable(Of TimeSpan) = Nothing) As StatefulServiceProperties

Parameters

placementConstraints
String

The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)".

correlationScheme
IEnumerable<ManagedServiceCorrelation>

A list that describes the correlation of the service with other services.

serviceLoadMetrics
IEnumerable<ManagedServiceLoadMetric>

The service load metrics is given as an array of ServiceLoadMetric objects.

servicePlacementPolicies
IEnumerable<ManagedServicePlacementPolicy>

A list that describes the correlation of the service with other services. Please note ManagedServicePlacementPolicy is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include ServicePlacementInvalidDomainPolicy, ServicePlacementNonPartiallyPlaceServicePolicy, ServicePlacementPreferPrimaryDomainPolicy, ServicePlacementRequiredDomainPolicy and ServicePlacementRequireDomainDistributionPolicy.

defaultMoveCost
Nullable<ServiceFabricManagedServiceMoveCost>

Specifies the move cost for the service.

scalingPolicies
IEnumerable<ManagedServiceScalingPolicy>

Scaling policies for this service.

provisioningState
String

The current deployment or provisioning state, which only appears in the response.

serviceTypeName
String

The name of the service type.

partitionDescription
ManagedServicePartitionScheme

Describes how the service is partitioned. Please note ManagedServicePartitionScheme is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include NamedPartitionScheme, SingletonPartitionScheme and UniformInt64RangePartitionScheme.

servicePackageActivationMode
Nullable<ManagedServicePackageActivationMode>

The activation Mode of the service package.

serviceDnsName
String

Dns name used for the service. If this is specified, then the DNS name can be used to return the IP addresses of service endpoints for application layer protocols (e.g., HTTP). When updating serviceDnsName, old name may be temporarily resolvable. However, rely on new name. When removing serviceDnsName, removed name may temporarily be resolvable. Do not rely on the name being unresolvable.

hasPersistedState
Nullable<Boolean>

A flag indicating whether this is a persistent service which stores states on the local disk. If it is then the value of this property is true, if not it is false.

targetReplicaSetSize
Nullable<Int32>

The target replica set size as a number.

minReplicaSetSize
Nullable<Int32>

The minimum replica set size as a number.

replicaRestartWaitDuration
Nullable<TimeSpan>

The duration between when a replica goes down and when a new replica is created, represented in ISO 8601 format "hh:mm:ss".

quorumLossWaitDuration
Nullable<TimeSpan>

The maximum duration for which a partition is allowed to be in a state of quorum loss, represented in ISO 8601 format "hh:mm:ss".

standByReplicaKeepDuration
Nullable<TimeSpan>

The definition on how long StandBy replicas should be maintained before being removed, represented in ISO 8601 format "hh:mm:ss".

servicePlacementTimeLimit
Nullable<TimeSpan>

The duration for which replicas can stay InBuild before reporting that build is stuck, represented in ISO 8601 format "hh:mm:ss".

Returns

A new StatefulServiceProperties instance for mocking.

Applies to