你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ResizeOperationStatus 类
- java.
lang. Object - com.
microsoft. azure. management. batch. ResizeOperationStatus
- com.
public class ResizeOperationStatus
有关当前或上次完成的大小调整操作的详细信息。 如果池 AllocationState) 调整大小,则描述当前操作 (;如果 AllocationState 为“稳定) ”,则描述以前完成的操作 (。
方法摘要
修饰符和类型 | 方法和描述 |
---|---|
List<Resize |
errors()
仅当上次调整池大小期间发生错误时,并且仅当池 allocationState 为“稳定”时,才设置此属性。 |
Compute |
nodeDeallocationOption()
获取默认值为重新排队。 可能的值包括:“Requeue”、“Terminate”、“TaskCompletion”、“RetainedData”。 |
Period |
resizeTimeout()
获取默认值为 15 分钟。 最小值为 5 分钟。 如果指定的值小于 5 分钟,Batch 服务将返回错误;如果直接调用 REST API,则 HTTP 状态代码为 400 (错误请求) 。 |
DateTime |
startTime()
获取 startTime 值。 |
Integer |
targetDedicatedNodes()
获取 targetDedicatedNodes 值。 |
Integer |
targetLowPriorityNodes()
获取 targetLowPriorityNodes 值。 |
Resize |
withErrors(List<ResizeError> errors)
仅当上次调整池大小期间发生错误时设置此属性,并且仅当池 allocationState 为“稳定”时设置此属性。 |
Resize |
withNodeDeallocationOption(ComputeNodeDeallocationOption nodeDeallocationOption)
将默认值设置为“重新排队”。 可能的值包括:“Requeue”、“Terminate”、“TaskCompletion”、“RetainedData”。 |
Resize |
withResizeTimeout(Period resizeTimeout)
将默认值设置为 15 分钟。 最小值为 5 分钟。 如果指定的值小于 5 分钟,Batch 服务将返回错误;如果直接调用 REST API,则 HTTP 状态代码为 400 (错误请求) 。 |
Resize |
withStartTime(DateTime startTime)
设置 startTime 值。 |
Resize |
withTargetDedicatedNodes(Integer targetDedicatedNodes)
设置 targetDedicatedNodes 值。 |
Resize |
withTargetLowPriorityNodes(Integer targetLowPriorityNodes)
设置 targetLowPriorityNodes 值。 |
方法详细信息
errors
public List
仅当上次调整池大小期间发生错误时,并且仅当池 allocationState 为“稳定”时,才设置此属性。
Returns:
nodeDeallocationOption
public ComputeNodeDeallocationOption nodeDeallocationOption()
获取默认值为重新排队。 可能的值包括:“Requeue”、“Terminate”、“TaskCompletion”、“RetainedData”。
Returns:
resizeTimeout
public Period resizeTimeout()
获取默认值为 15 分钟。 最小值为 5 分钟。 如果指定的值小于 5 分钟,Batch 服务将返回错误;如果直接调用 REST API,则 HTTP 状态代码为 400 (错误请求) 。
Returns:
startTime
public DateTime startTime()
获取 startTime 值。
Returns:
targetDedicatedNodes
public Integer targetDedicatedNodes()
获取 targetDedicatedNodes 值。
Returns:
targetLowPriorityNodes
public Integer targetLowPriorityNodes()
获取 targetLowPriorityNodes 值。
Returns:
withErrors
public ResizeOperationStatus withErrors(List
仅当上次调整池大小期间发生错误时设置此属性,并且仅当池 allocationState 为“稳定”时设置此属性。
Parameters:
Returns:
withNodeDeallocationOption
public ResizeOperationStatus withNodeDeallocationOption(ComputeNodeDeallocationOption nodeDeallocationOption)
将默认值设置为“重新排队”。 可能的值包括:“Requeue”、“Terminate”、“TaskCompletion”、“RetainedData”。
Parameters:
Returns:
withResizeTimeout
public ResizeOperationStatus withResizeTimeout(Period resizeTimeout)
将默认值设置为 15 分钟。 最小值为 5 分钟。 如果指定的值小于 5 分钟,Batch 服务将返回错误;如果直接调用 REST API,则 HTTP 状态代码为 400 (错误请求) 。
Parameters:
Returns:
withStartTime
public ResizeOperationStatus withStartTime(DateTime startTime)
设置 startTime 值。
Parameters:
Returns:
withTargetDedicatedNodes
public ResizeOperationStatus withTargetDedicatedNodes(Integer targetDedicatedNodes)
设置 targetDedicatedNodes 值。
Parameters:
Returns:
withTargetLowPriorityNodes
public ResizeOperationStatus withTargetLowPriorityNodes(Integer targetLowPriorityNodes)
设置 targetLowPriorityNodes 值。
Parameters:
Returns:
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈