Share via


NodeStartPollerAsync Class

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

public final class NodeStartPollerAsync

Async poller class used by beginStartNode to implement polling logic for starting a BatchNode. Returns BatchNode values during polling and the final BatchNode upon successful completion.

Constructor Summary

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

Creates a new NodeStartPollerAsync.

Method Summary

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

Activation operation to start the node.

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

Cancel operation (not supported for start).

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

Final result fetch operation.

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

Poll operation to check the node's start-up state.

Methods inherited from java.lang.Object

Constructor Details

NodeStartPollerAsync

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

Creates a new NodeStartPollerAsync.

Parameters:

batchAsyncClient - The BatchAsyncClient used to interact with the Batch service.
poolId - The ID of the pool that contains the node.
nodeId - The ID of the node to start.
options - Optional request options for service calls.

Method Details

getActivationOperation

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

Activation operation to start the node.

Returns:

A function that initiates the start request and returns a PollResponse with IN_PROGRESS status.

getCancelOperation

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

Cancel operation (not supported for start).

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 result from the latest poll response.

getPollOperation

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

Poll operation to check the node's start-up state.

Returns:

A function that polls the node and returns a PollResponse with the current operation status.

Applies to