共用方式為


StatefulServiceProperties Constructors

Definition

Overloads

StatefulServiceProperties()

Initializes a new instance of the StatefulServiceProperties class.

StatefulServiceProperties(String, Partition, String, IList<ServiceCorrelation>, IList<ServiceLoadMetric>, IList<ServicePlacementPolicy>, String, IList<ScalingPolicy>, String, String, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, String, String, String, String)

Initializes a new instance of the StatefulServiceProperties class.

StatefulServiceProperties()

Initializes a new instance of the StatefulServiceProperties class.

public StatefulServiceProperties ();
Public Sub New ()

Applies to

StatefulServiceProperties(String, Partition, String, IList<ServiceCorrelation>, IList<ServiceLoadMetric>, IList<ServicePlacementPolicy>, String, IList<ScalingPolicy>, String, String, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, String, String, String, String)

Initializes a new instance of the StatefulServiceProperties class.

public StatefulServiceProperties (string serviceTypeName, Microsoft.Azure.Management.ServiceFabricManagedClusters.Models.Partition partitionDescription, string placementConstraints = default, System.Collections.Generic.IList<Microsoft.Azure.Management.ServiceFabricManagedClusters.Models.ServiceCorrelation> correlationScheme = default, System.Collections.Generic.IList<Microsoft.Azure.Management.ServiceFabricManagedClusters.Models.ServiceLoadMetric> serviceLoadMetrics = default, System.Collections.Generic.IList<Microsoft.Azure.Management.ServiceFabricManagedClusters.Models.ServicePlacementPolicy> servicePlacementPolicies = default, string defaultMoveCost = default, System.Collections.Generic.IList<Microsoft.Azure.Management.ServiceFabricManagedClusters.Models.ScalingPolicy> scalingPolicies = default, string provisioningState = default, string servicePackageActivationMode = default, bool? hasPersistedState = default, int? targetReplicaSetSize = default, int? minReplicaSetSize = default, string replicaRestartWaitDuration = default, string quorumLossWaitDuration = default, string standByReplicaKeepDuration = default, string servicePlacementTimeLimit = default);
new Microsoft.Azure.Management.ServiceFabricManagedClusters.Models.StatefulServiceProperties : string * Microsoft.Azure.Management.ServiceFabricManagedClusters.Models.Partition * string * System.Collections.Generic.IList<Microsoft.Azure.Management.ServiceFabricManagedClusters.Models.ServiceCorrelation> * System.Collections.Generic.IList<Microsoft.Azure.Management.ServiceFabricManagedClusters.Models.ServiceLoadMetric> * System.Collections.Generic.IList<Microsoft.Azure.Management.ServiceFabricManagedClusters.Models.ServicePlacementPolicy> * string * System.Collections.Generic.IList<Microsoft.Azure.Management.ServiceFabricManagedClusters.Models.ScalingPolicy> * string * string * Nullable<bool> * Nullable<int> * Nullable<int> * string * string * string * string -> Microsoft.Azure.Management.ServiceFabricManagedClusters.Models.StatefulServiceProperties
Public Sub New (serviceTypeName As String, partitionDescription As Partition, Optional placementConstraints As String = Nothing, Optional correlationScheme As IList(Of ServiceCorrelation) = Nothing, Optional serviceLoadMetrics As IList(Of ServiceLoadMetric) = Nothing, Optional servicePlacementPolicies As IList(Of ServicePlacementPolicy) = Nothing, Optional defaultMoveCost As String = Nothing, Optional scalingPolicies As IList(Of ScalingPolicy) = Nothing, Optional provisioningState As String = Nothing, Optional servicePackageActivationMode 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 String = Nothing, Optional quorumLossWaitDuration As String = Nothing, Optional standByReplicaKeepDuration As String = Nothing, Optional servicePlacementTimeLimit As String = Nothing)

Parameters

serviceTypeName
String

The name of the service type

partitionDescription
Partition
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
IList<ServiceCorrelation>
serviceLoadMetrics
IList<ServiceLoadMetric>
servicePlacementPolicies
IList<ServicePlacementPolicy>
defaultMoveCost
String

Possible values include: 'Zero', 'Low', 'Medium', 'High'

scalingPolicies
IList<ScalingPolicy>
provisioningState
String

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

servicePackageActivationMode
String

The activation Mode of the service package. Possible values include: 'SharedProcess', 'ExclusiveProcess'

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
String

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

quorumLossWaitDuration
String

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
String

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

servicePlacementTimeLimit
String

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

Applies to