FabricClient.FaultManagementClient.RestartReplicaAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
RestartReplicaAsync(String, Guid, Int64, CompletionMode, Double, CancellationToken) |
This API will restart the replica (equivalent of ReportFault - Temporary) specified by the passed in ReplicaSelector. |
RestartReplicaAsync(String, Guid, Int64, CompletionMode, CancellationToken) |
This API will restart the replica (equivalent of ReportFault - Temporary) specified by the passed in ReplicaSelector. |
RestartReplicaAsync(String, Guid, Int64, CompletionMode) |
This API will restart the replica (equivalent of ReportFault - Temporary) specified by the passed in ReplicaSelector. |
RestartReplicaAsync(ReplicaSelector, CompletionMode) |
This API will restart the replica (equivalent of ReportFault - Temporary) specified by the passed in ReplicaSelector. |
RestartReplicaAsync(ReplicaSelector, CompletionMode, CancellationToken) |
This API will restart the replica (equivalent of ReportFault - Temporary) specified by the passed in ReplicaSelector. |
RestartReplicaAsync(ReplicaSelector, CompletionMode, TimeSpan, CancellationToken) |
This API will restart the replica (equivalent of ReportFault - Temporary) specified by the passed in ReplicaSelector. |
RestartReplicaAsync(String, Guid, Int64, CompletionMode, Double, CancellationToken)
This API will restart the replica (equivalent of ReportFault - Temporary) specified by the passed in ReplicaSelector.
public System.Threading.Tasks.Task<System.Fabric.Result.RestartReplicaResult> RestartReplicaAsync (string nodeName, Guid partitionId, long replicaId, System.Fabric.CompletionMode completionMode, double operationTimeoutSec, System.Threading.CancellationToken token);
member this.RestartReplicaAsync : string * Guid * int64 * System.Fabric.CompletionMode * double * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.Result.RestartReplicaResult>
Public Function RestartReplicaAsync (nodeName As String, partitionId As Guid, replicaId As Long, completionMode As CompletionMode, operationTimeoutSec As Double, token As CancellationToken) As Task(Of RestartReplicaResult)
Parameters
- nodeName
- String
Node name where replica needs to be restarted ReplicaSelector
- partitionId
- Guid
Partition Id where the replica needs to be restarted
- replicaId
- Int64
Replica Id that needs to be restarted
- completionMode
- CompletionMode
The CompletionMode that specifies whether to wait until the restart of the replica is complete or not DoNotVerify - Return after triggering the restart of the replica Verify - Return after the remove completes
- operationTimeoutSec
- Double
The overall timeout in seconds for the operation, including the timeout to wait for replica to be restarted if CompletionMode is Verify.
- token
- CancellationToken
Cancellation token
Returns
RestartReplicaResult which gives information about the actual selected replica.
Exceptions
Action took more than its allocated time.
Any of the required arguments are null.
These are the fabric failures FabricErrorCode.ReplicaDoesNotExist - If the Selected replica was not found FabricErrorCode.PartitionNotFound - if the specified partition selected does not exist
Applies to
RestartReplicaAsync(String, Guid, Int64, CompletionMode, CancellationToken)
This API will restart the replica (equivalent of ReportFault - Temporary) specified by the passed in ReplicaSelector.
public System.Threading.Tasks.Task<System.Fabric.Result.RestartReplicaResult> RestartReplicaAsync (string nodeName, Guid partitionId, long replicaId, System.Fabric.CompletionMode completionMode, System.Threading.CancellationToken token);
member this.RestartReplicaAsync : string * Guid * int64 * System.Fabric.CompletionMode * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.Result.RestartReplicaResult>
Public Function RestartReplicaAsync (nodeName As String, partitionId As Guid, replicaId As Long, completionMode As CompletionMode, token As CancellationToken) As Task(Of RestartReplicaResult)
Parameters
- nodeName
- String
Node name where replica needs to be restarted ReplicaSelector
- partitionId
- Guid
Partition Id where the replica needs to be restarted
- replicaId
- Int64
Replica Id that needs to be restarted
- completionMode
- CompletionMode
The CompletionMode that specifies whether to wait until the restart of the replica is complete or not DoNotVerify - Return after triggering the restart of the replica Verify - Return after the remove completes
- token
- CancellationToken
Cancellation token
Returns
RestartReplicaResult which gives information about the actual selected replica.
Exceptions
Action took more than its allocated time.
Any of the required arguments are null.
These are the fabric failures FabricErrorCode.ReplicaDoesNotExist - If the Selected replica was not found FabricErrorCode.PartitionNotFound - if the specified partition selected does not exist.
Applies to
RestartReplicaAsync(String, Guid, Int64, CompletionMode)
This API will restart the replica (equivalent of ReportFault - Temporary) specified by the passed in ReplicaSelector.
public System.Threading.Tasks.Task<System.Fabric.Result.RestartReplicaResult> RestartReplicaAsync (string nodeName, Guid partitionId, long replicaId, System.Fabric.CompletionMode completionMode);
member this.RestartReplicaAsync : string * Guid * int64 * System.Fabric.CompletionMode -> System.Threading.Tasks.Task<System.Fabric.Result.RestartReplicaResult>
Public Function RestartReplicaAsync (nodeName As String, partitionId As Guid, replicaId As Long, completionMode As CompletionMode) As Task(Of RestartReplicaResult)
Parameters
- nodeName
- String
Node name where replica needs to be restarted ReplicaSelector
- partitionId
- Guid
Partition Id where the replica needs to be restarted
- replicaId
- Int64
Replica Id that needs to be restarted
- completionMode
- CompletionMode
The CompletionMode that specifies whether to wait until the restart of the replica is complete or not DoNotVerify - Return after triggering the restart of the replica Verify - Return after the remove completes
Returns
RestartReplicaResult which gives information about the actual selected replica.
Exceptions
Action took more than its allocated time.
Any of the required arguments are null.
These are the fabric failures FabricErrorCode.ReplicaDoesNotExist - If the Selected replica was not found FabricErrorCode.PartitionNotFound - if the specified partition selected does not exist.
Applies to
RestartReplicaAsync(ReplicaSelector, CompletionMode)
This API will restart the replica (equivalent of ReportFault - Temporary) specified by the passed in ReplicaSelector.
public System.Threading.Tasks.Task<System.Fabric.Result.RestartReplicaResult> RestartReplicaAsync (System.Fabric.ReplicaSelector replicaSelector, System.Fabric.CompletionMode completionMode);
member this.RestartReplicaAsync : System.Fabric.ReplicaSelector * System.Fabric.CompletionMode -> System.Threading.Tasks.Task<System.Fabric.Result.RestartReplicaResult>
Public Function RestartReplicaAsync (replicaSelector As ReplicaSelector, completionMode As CompletionMode) As Task(Of RestartReplicaResult)
Parameters
- replicaSelector
- ReplicaSelector
The ReplicaSelector which indicates the replica to be restarted. This API can only be called for persisted service replicas.
- completionMode
- CompletionMode
The CompletionMode that specifies whether to wait until the restart of the replica is complete or not DoNotVerify - Return after triggering the restart of the replica Verify - Return after the remove completes
Returns
RestartReplicaResult which gives information about the actual selected replica.
Exceptions
Action took more than its allocated time.
Any of the required arguments are null.
These are the fabric failures FabricErrorCode.ReplicaDoesNotExist - If the Selected replica was not found FabricErrorCode.PartitionNotFound - if the specified partition selected does not exist.
Applies to
RestartReplicaAsync(ReplicaSelector, CompletionMode, CancellationToken)
This API will restart the replica (equivalent of ReportFault - Temporary) specified by the passed in ReplicaSelector.
public System.Threading.Tasks.Task<System.Fabric.Result.RestartReplicaResult> RestartReplicaAsync (System.Fabric.ReplicaSelector replicaSelector, System.Fabric.CompletionMode completionMode, System.Threading.CancellationToken token);
member this.RestartReplicaAsync : System.Fabric.ReplicaSelector * System.Fabric.CompletionMode * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.Result.RestartReplicaResult>
Public Function RestartReplicaAsync (replicaSelector As ReplicaSelector, completionMode As CompletionMode, token As CancellationToken) As Task(Of RestartReplicaResult)
Parameters
- replicaSelector
- ReplicaSelector
The ReplicaSelector which indicates the replica to be restarted. This API can only be called for persisted service replicas.
- completionMode
- CompletionMode
The CompletionMode that specifies whether to wait until the restart of the replica is complete or not DoNotVerify - Return after triggering the restart of the replica Verify - Return after the remove completes
- token
- CancellationToken
Cancellation token
Returns
RestartReplicaResult which gives information about the actual selected replica.
Exceptions
Action took more than its allocated time.
Any of the required arguments are null.
These are the fabric failures FabricErrorCode.ReplicaDoesNotExist - If the Selected replica was not found FabricErrorCode.PartitionNotFound - if the specified partition selected does not exist.
Applies to
RestartReplicaAsync(ReplicaSelector, CompletionMode, TimeSpan, CancellationToken)
This API will restart the replica (equivalent of ReportFault - Temporary) specified by the passed in ReplicaSelector.
public System.Threading.Tasks.Task<System.Fabric.Result.RestartReplicaResult> RestartReplicaAsync (System.Fabric.ReplicaSelector replicaSelector, System.Fabric.CompletionMode completionMode, TimeSpan operationTimeout, System.Threading.CancellationToken token);
member this.RestartReplicaAsync : System.Fabric.ReplicaSelector * System.Fabric.CompletionMode * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.Result.RestartReplicaResult>
Public Function RestartReplicaAsync (replicaSelector As ReplicaSelector, completionMode As CompletionMode, operationTimeout As TimeSpan, token As CancellationToken) As Task(Of RestartReplicaResult)
Parameters
- replicaSelector
- ReplicaSelector
The ReplicaSelector which indicates the replica to be restarted. This API can only be called for persisted service replicas.
- completionMode
- CompletionMode
The CompletionMode that specifies whether to wait until the restart of the replica is complete or not DoNotVerify - Return after triggering the restart of the replica Verify - Return after the remove completes
- operationTimeout
- TimeSpan
The overall timeout for the operation including the timeout to wait for replica to be restarted if CompletionMode is Verify.
- token
- CancellationToken
Cancellation token
Returns
RestartReplicaResult which gives information about the actual selected replica.
Exceptions
Action took more than its allocated time.
Any of the required arguments are null.
These are the fabric failures FabricErrorCode.ReplicaDoesNotExist - If the Selected replica was not found FabricErrorCode.PartitionNotFound - if the specified partition selected does not exist
Applies to
Azure SDK for .NET