你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
StatelessServiceProperties 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
无状态服务资源的属性。
[Newtonsoft.Json.JsonObject("Stateless")]
public class StatelessServiceProperties : Microsoft.Azure.Management.ServiceFabric.Models.ServiceResourceProperties
[<Newtonsoft.Json.JsonObject("Stateless")>]
type StatelessServiceProperties = class
inherit ServiceResourceProperties
Public Class StatelessServiceProperties
Inherits ServiceResourceProperties
- 继承
- 属性
-
Newtonsoft.Json.JsonObjectAttribute
构造函数
StatelessServiceProperties() |
初始化 StatelessServiceProperties 类的新实例。 |
StatelessServiceProperties(String, IList<ServiceCorrelationDescription>, IList<ServiceLoadMetricDescription>, IList<ServicePlacementPolicyDescription>, String, String, String, PartitionSchemeDescription, String, String, Nullable<Int32>, String) |
初始化 StatelessServiceProperties 类的新实例。 |
属性
CorrelationScheme |
获取或设置一个列表,该列表描述服务与其他服务的相关性。 (继承自 ServiceResourcePropertiesBase) |
DefaultMoveCost |
获取或设置指定服务的移动成本。 可能的值包括:“Zero”、“Low”、“Medium”、“High” (继承自 ServiceResourcePropertiesBase) |
InstanceCloseDelayDuration |
获取或设置 RequestDrain 功能的延迟持续时间,以确保在延迟开始之前删除无状态实例播发的终结点,然后再关闭实例。 此延迟使现有请求在实例实际关闭之前正常排出 (https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-application-upgrade-advanced#avoid-connection-drops-during-stateless-service-planned-downtime-preview) 。 首先,会将其解释为表示 ISO 8601 持续时间的一个字符串。 如果那失败,则会将其解释为表示总毫秒数的一个数字。 |
InstanceCount |
获取或设置实例计数。 |
PartitionDescription |
获取或设置描述服务的分区方式。 (继承自 ServiceResourceProperties) |
PlacementConstraints |
获取或设置字符串形式的放置约束。 放置约束是节点属性中的布尔表达式,用于根据服务要求将服务限制到特定的节点。 例如,若要在 NodeType 为蓝色的节点上放置服务,请指定以下内容:“NodeColor == blue) ”。 (继承自 ServiceResourcePropertiesBase) |
ProvisioningState |
获取当前部署或预配状态,该状态仅显示在响应中 (继承自 ServiceResourceProperties) |
ServiceDnsName |
获取或设置用于服务的 dns 名称。 如果指定了这一点,则可以通过其 DNS 名称(而不是服务名称)访问服务。 (继承自 ServiceResourceProperties) |
ServiceLoadMetrics |
获取或设置服务负载指标作为 ServiceLoadMetricDescription 对象的数组提供。 (继承自 ServiceResourcePropertiesBase) |
ServicePackageActivationMode |
获取或设置服务包的激活模式。 可能的值包括:“SharedProcess”、“ExclusiveProcess” (继承自 ServiceResourceProperties) |
ServicePlacementPolicies |
获取或设置一个列表,该列表描述服务与其他服务的相关性。 (继承自 ServiceResourcePropertiesBase) |
ServiceTypeName |
获取或设置服务类型的名称 (继承自 ServiceResourceProperties) |
方法
Validate() |
验证 对象。 |