Share via


NodeReimagePollerAsync Class

  • java.lang.Object
    • com.azure.compute.batch.NodeReimagePollerAsync

public final class NodeReimagePollerAsync

Async poller class used by beginReimageNode to implement polling logic for re-imaging a BatchNode. Returns BatchNode snapshots while polling and the final BatchNode upon successful completion.

Constructor Summary

Constructor Description
NodeReimagePollerAsync(BatchAsyncClient batchAsyncClient, String poolId, String nodeId, RequestOptions options)

Creates a new NodeReimagePollerAsync.

Method Summary

Modifier and Type Method and Description
Function<PollingContext<BatchNode>,Mono<PollResponse<BatchNode>>> getActivationOperation()

Activation operation to start the re-image process.

BiFunction<PollingContext<BatchNode>,PollResponse<BatchNode>,Mono<BatchNode>> getCancelOperation()

Cancel operation – not supported for re-image.

Function<PollingContext<BatchNode>,Mono<BatchNode>> getFetchResultOperation()

Final-result fetch operation.

Function<PollingContext<BatchNode>,Mono<PollResponse<BatchNode>>> getPollOperation()

Poll operation to track the node’s state.

Methods inherited from java.lang.Object

Constructor Details

NodeReimagePollerAsync

public NodeReimagePollerAsync(BatchAsyncClient batchAsyncClient, String poolId, String nodeId, RequestOptions options)

Creates a new NodeReimagePollerAsync.

Parameters:

batchAsyncClient - Client used to call the Batch service.
poolId - Pool that contains the node.
nodeId - Node to re-image.
options - Optional request options (may be null).

Method Details

getActivationOperation

public Function<PollingContext<BatchNode>,Mono<PollResponse<BatchNode>>> getActivationOperation()

Activation operation to start the re-image process.

Returns:

A function that initiates the re-image call and returns a PollResponse<T> with LongRunningOperationStatus#IN_PROGRESS.

getCancelOperation

public BiFunction<PollingContext<BatchNode>,PollResponse<BatchNode>,Mono<BatchNode>> getCancelOperation()

Cancel operation – not supported for re-image.

Returns:

A function that always returns an empty Mono, indicating cancellation is unsupported.

getFetchResultOperation

public Function<PollingContext<BatchNode>,Mono<BatchNode>> getFetchResultOperation()

Final-result fetch operation.

Returns:

A function that returns the final BatchNode from the latest poll response.

getPollOperation

public Function<PollingContext<BatchNode>,Mono<PollResponse<BatchNode>>> getPollOperation()

Poll operation to track the node’s state.

Returns:

A function that polls the node and returns a PollResponse<T> reflecting the current long-running operation status.

Applies to