Pools.stopResize 方法

定义

重载

stopResize(String poolId)

Stops an ongoing resize operation on the pool. This does not restore the pool to its previous state before the resize operation: it only stops any further changes being made, and the pool maintains its current state. After stopping, the pool stabilizes at the number of nodes it was at when the stop operation was done. During the stop operation, the pool allocation state changes first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API can also be used to halt the initial sizing of the pool when it is created.

stopResize(String poolId, PoolStopResizeOptions poolStopResizeOptions)

Stops an ongoing resize operation on the pool. This does not restore the pool to its previous state before the resize operation: it only stops any further changes being made, and the pool maintains its current state. After stopping, the pool stabilizes at the number of nodes it was at when the stop operation was done. During the stop operation, the pool allocation state changes first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API can also be used to halt the initial sizing of the pool when it is created.

stopResize(String poolId)

Stops an ongoing resize operation on the pool. This does not restore the pool to its previous state before the resize operation: it only stops any further changes being made, and the pool maintains its current state. After stopping, the pool stabilizes at the number of nodes it was at when the stop operation was done. During the stop operation, the pool allocation state changes first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API can also be used to halt the initial sizing of the pool when it is created.

public void stopResize(String poolId)

参数

poolId
String

The ID of the pool whose resizing you want to stop.

例外

IllegalArgumentException

thrown if parameters fail the validation

BatchErrorException

thrown if the request is rejected by server

RuntimeException

all other wrapped checked exceptions if the request fails to be sent

stopResize(String poolId, PoolStopResizeOptions poolStopResizeOptions)

Stops an ongoing resize operation on the pool. This does not restore the pool to its previous state before the resize operation: it only stops any further changes being made, and the pool maintains its current state. After stopping, the pool stabilizes at the number of nodes it was at when the stop operation was done. During the stop operation, the pool allocation state changes first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API can also be used to halt the initial sizing of the pool when it is created.

public void stopResize(String poolId, PoolStopResizeOptions poolStopResizeOptions)

参数

poolId
String

The ID of the pool whose resizing you want to stop.

poolStopResizeOptions
PoolStopResizeOptions

Additional parameters for the operation

例外

IllegalArgumentException

thrown if parameters fail the validation

BatchErrorException

thrown if the request is rejected by server

RuntimeException

all other wrapped checked exceptions if the request fails to be sent

适用于