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

ResizeOperationStatus 类

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

public class ResizeOperationStatus

有关当前或上次完成的大小调整操作的详细信息。 如果池 AllocationState) 调整大小,则描述当前操作 (;如果 AllocationState 为“稳定) ”,则描述以前完成的操作 (。

方法摘要

修饰符和类型 方法和描述
List<ResizeError> errors()

仅当上次调整池大小期间发生错误时,并且仅当池 allocationState 为“稳定”时,才设置此属性。

ComputeNodeDeallocationOption nodeDeallocationOption()

获取默认值为重新排队。 可能的值包括:“Requeue”、“Terminate”、“TaskCompletion”、“RetainedData”。

Period resizeTimeout()

获取默认值为 15 分钟。 最小值为 5 分钟。 如果指定的值小于 5 分钟,Batch 服务将返回错误;如果直接调用 REST API,则 HTTP 状态代码为 400 (错误请求) 。

DateTime startTime()

获取 startTime 值。

Integer targetDedicatedNodes()

获取 targetDedicatedNodes 值。

Integer targetLowPriorityNodes()

获取 targetLowPriorityNodes 值。

ResizeOperationStatus withErrors(List<ResizeError> errors)

仅当上次调整池大小期间发生错误时设置此属性,并且仅当池 allocationState 为“稳定”时设置此属性。

ResizeOperationStatus withNodeDeallocationOption(ComputeNodeDeallocationOption nodeDeallocationOption)

将默认值设置为“重新排队”。 可能的值包括:“Requeue”、“Terminate”、“TaskCompletion”、“RetainedData”。

ResizeOperationStatus withResizeTimeout(Period resizeTimeout)

将默认值设置为 15 分钟。 最小值为 5 分钟。 如果指定的值小于 5 分钟,Batch 服务将返回错误;如果直接调用 REST API,则 HTTP 状态代码为 400 (错误请求) 。

ResizeOperationStatus withStartTime(DateTime startTime)

设置 startTime 值。

ResizeOperationStatus withTargetDedicatedNodes(Integer targetDedicatedNodes)

设置 targetDedicatedNodes 值。

ResizeOperationStatus withTargetLowPriorityNodes(Integer targetLowPriorityNodes)

设置 targetLowPriorityNodes 值。

方法详细信息

errors

public List errors()

仅当上次调整池大小期间发生错误时,并且仅当池 allocationState 为“稳定”时,才设置此属性。

Returns:

错误值

nodeDeallocationOption

public ComputeNodeDeallocationOption nodeDeallocationOption()

获取默认值为重新排队。 可能的值包括:“Requeue”、“Terminate”、“TaskCompletion”、“RetainedData”。

Returns:

nodeDeallocationOption 值

resizeTimeout

public Period resizeTimeout()

获取默认值为 15 分钟。 最小值为 5 分钟。 如果指定的值小于 5 分钟,Batch 服务将返回错误;如果直接调用 REST API,则 HTTP 状态代码为 400 (错误请求) 。

Returns:

resizeTimeout 值

startTime

public DateTime startTime()

获取 startTime 值。

Returns:

startTime 值

targetDedicatedNodes

public Integer targetDedicatedNodes()

获取 targetDedicatedNodes 值。

Returns:

targetDedicatedNodes 值

targetLowPriorityNodes

public Integer targetLowPriorityNodes()

获取 targetLowPriorityNodes 值。

Returns:

targetLowPriorityNodes 值

withErrors

public ResizeOperationStatus withErrors(List errors)

仅当上次调整池大小期间发生错误时设置此属性,并且仅当池 allocationState 为“稳定”时设置此属性。

Parameters:

errors - 要设置的错误值

Returns:

ResizeOperationStatus 对象本身。

withNodeDeallocationOption

public ResizeOperationStatus withNodeDeallocationOption(ComputeNodeDeallocationOption nodeDeallocationOption)

将默认值设置为“重新排队”。 可能的值包括:“Requeue”、“Terminate”、“TaskCompletion”、“RetainedData”。

Parameters:

nodeDeallocationOption - 要设置的 nodeDeallocationOption 值

Returns:

ResizeOperationStatus 对象本身。

withResizeTimeout

public ResizeOperationStatus withResizeTimeout(Period resizeTimeout)

将默认值设置为 15 分钟。 最小值为 5 分钟。 如果指定的值小于 5 分钟,Batch 服务将返回错误;如果直接调用 REST API,则 HTTP 状态代码为 400 (错误请求) 。

Parameters:

resizeTimeout - 要设置的 resizeTimeout 值

Returns:

ResizeOperationStatus 对象本身。

withStartTime

public ResizeOperationStatus withStartTime(DateTime startTime)

设置 startTime 值。

Parameters:

startTime - 要设置的 startTime 值

Returns:

ResizeOperationStatus 对象本身。

withTargetDedicatedNodes

public ResizeOperationStatus withTargetDedicatedNodes(Integer targetDedicatedNodes)

设置 targetDedicatedNodes 值。

Parameters:

targetDedicatedNodes - 要设置的 targetDedicatedNodes 值

Returns:

ResizeOperationStatus 对象本身。

withTargetLowPriorityNodes

public ResizeOperationStatus withTargetLowPriorityNodes(Integer targetLowPriorityNodes)

设置 targetLowPriorityNodes 值。

Parameters:

targetLowPriorityNodes - 要设置的 targetLowPriorityNodes 值

Returns:

ResizeOperationStatus 对象本身。

适用于