你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ScaleSettings 类

  • java.lang.Object
    • com.microsoft.azure.management.batch.ScaleSettings

public class ScaleSettings

池的缩放设置。 定义池的所需大小。 这可以是指定请求的 targetDedicatedNodes 的“fixedScale”,也可以是定义定期重新计算的公式的“autoScale”。 如果未指定此属性,池将具有 0 个 targetDedicatedNodes 的固定规模。

方法摘要

修饰符和类型 方法和描述
AutoScaleSettings autoScale()

获取此属性和 fixedScale 是互斥的,必须指定其中一个属性。

FixedScaleSettings fixedScale()

获取此属性和 autoScale 是互斥的,必须指定其中一个属性。

ScaleSettings withAutoScale(AutoScaleSettings autoScale)

设置此属性和 fixedScale 是互斥的,必须指定其中一个属性。

ScaleSettings withFixedScale(FixedScaleSettings fixedScale)

设置此属性和 autoScale 是互斥的,必须指定其中一个属性。

方法详细信息

autoScale

public AutoScaleSettings autoScale()

获取此属性和 fixedScale 是互斥的,必须指定其中一个属性。

Returns:

autoScale 值

fixedScale

public FixedScaleSettings fixedScale()

获取此属性和 autoScale 是互斥的,必须指定其中一个属性。

Returns:

fixedScale 值

withAutoScale

public ScaleSettings withAutoScale(AutoScaleSettings autoScale)

设置此属性和 fixedScale 是互斥的,必须指定其中一个属性。

Parameters:

autoScale - 要设置的 autoScale 值

Returns:

ScaleSettings 对象本身。

withFixedScale

public ScaleSettings withFixedScale(FixedScaleSettings fixedScale)

设置此属性和 autoScale 是互斥的,必须指定其中一个属性。

Parameters:

fixedScale - 要设置的 fixedScale 值

Returns:

ScaleSettings 对象本身。

适用于