Share via


PoolOperations.RebootAsync Método

Definição

Reinicia o nó de computação especificado.

public System.Threading.Tasks.Task RebootAsync (string poolId, string computeNodeId, Microsoft.Azure.Batch.Common.ComputeNodeRebootOption? rebootOption = default, System.Collections.Generic.IEnumerable<Microsoft.Azure.Batch.BatchClientBehavior> additionalBehaviors = default, System.Threading.CancellationToken cancellationToken = default);
member this.RebootAsync : string * string * Nullable<Microsoft.Azure.Batch.Common.ComputeNodeRebootOption> * seq<Microsoft.Azure.Batch.BatchClientBehavior> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function RebootAsync (poolId As String, computeNodeId As String, Optional rebootOption As Nullable(Of ComputeNodeRebootOption) = Nothing, Optional additionalBehaviors As IEnumerable(Of BatchClientBehavior) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task

Parâmetros

poolId
String

A ID do pool que contém o nó de computação.

computeNodeId
String

A ID do nó de computação a ser reinicializado.

rebootOption
Nullable<ComputeNodeRebootOption>

Especifica quando reinicializar o nó e o que fazer com tarefas em execução no momento. O padrão é Requeue.

additionalBehaviors
IEnumerable<BatchClientBehavior>

Uma coleção de BatchClientBehavior instâncias que são aplicadas à solicitação de serviço do Lote após o CustomBehaviors.

cancellationToken
CancellationToken

Um CancellationToken para controlar o tempo de vida da operação assíncrona.

Retornos

Um Task que representa a operação assíncrona.

Comentários

Você pode reinicializar um nó de computação somente quando ele estiver no Idle estado ou Running .

A operação de reinicialização é executada de forma assíncrona.

Aplica-se a