ComputeNodes.reboot 方法

定义

重载

reboot(String poolId, String nodeId)

Restarts the specified compute node. You can restart a node only if it is in an idle or running state.

reboot(String poolId, String nodeId, ComputeNodeRebootOption nodeRebootOption, ComputeNodeRebootOptions computeNodeRebootOptions)

Restarts the specified compute node. You can restart a node only if it is in an idle or running state.

reboot(String poolId, String nodeId)

Restarts the specified compute node. You can restart a node only if it is in an idle or running state.

public void reboot(String poolId, String nodeId)

参数

poolId
String

The ID of the pool that contains the compute node.

nodeId
String

The ID of the compute node that you want to restart.

例外

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

reboot(String poolId, String nodeId, ComputeNodeRebootOption nodeRebootOption, ComputeNodeRebootOptions computeNodeRebootOptions)

Restarts the specified compute node. You can restart a node only if it is in an idle or running state.

public void reboot(String poolId, String nodeId, ComputeNodeRebootOption nodeRebootOption, ComputeNodeRebootOptions computeNodeRebootOptions)

参数

poolId
String

The ID of the pool that contains the compute node.

nodeId
String

The ID of the compute node that you want to restart.

nodeRebootOption
ComputeNodeRebootOption

When to reboot the compute node and what to do with currently running tasks. The default value is requeue. Possible values include: 'requeue', 'terminate', 'taskCompletion', 'retainedData'

computeNodeRebootOptions
ComputeNodeRebootOptions

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

适用于