Aracılığıyla paylaş


FabricClient.ClusterManagementClient.ActivateNodeAsync Method

Definition

Overloads

ActivateNodeAsync(String)

Activates a Service Fabric cluster node which is currently deactivated.

ActivateNodeAsync(String, TimeSpan, CancellationToken)

Activates a Service Fabric cluster node which is currently deactivated.

ActivateNodeAsync(String)

Activates a Service Fabric cluster node which is currently deactivated.

public System.Threading.Tasks.Task ActivateNodeAsync (string nodeName);
member this.ActivateNodeAsync : string -> System.Threading.Tasks.Task
Public Function ActivateNodeAsync (nodeName As String) As Task

Parameters

nodeName
String

The Node to be Activated.

Returns

A Task that represents the asynchronous acknowledgment of the request.

Exceptions

Remarks

Once activated, the node will again become a viable target for placing new replicas, and any closed replicas remaining on the node will be opened.

When this API completes it implies that the intent to activate has been registered by the system. It does not mean that the activation is complete. The progress of the operation can be determined by using the GetNodeListAsync() API

Applies to

ActivateNodeAsync(String, TimeSpan, CancellationToken)

Activates a Service Fabric cluster node which is currently deactivated.

public System.Threading.Tasks.Task ActivateNodeAsync (string nodeName, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.ActivateNodeAsync : string * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function ActivateNodeAsync (nodeName As String, timeout As TimeSpan, cancellationToken As CancellationToken) As Task

Parameters

nodeName
String

The Node to be Activated.

timeout
TimeSpan

The timespan that defines the maximum amount of time will allow this operation to continue before returning a TimeoutException.

cancellationToken
CancellationToken

The optional cancellation token that the operation is observing. It can be used to send a notification that the operation should be canceled. Note that cancellation is advisory and that the operation may still be completed even if it is cancelled.

Returns

A Task that represents the asynchronous acknowledgment of the request.

Exceptions

Remarks

Once activated, the node will again become a viable target for placing new replicas, and any closed replicas remaining on the node will be opened.

When this API completes it implies that the intent to activate has been registered by the system. It does not mean that the activation is complete. The progress of the operation can be determined by using the GetNodeListAsync() API

Applies to