FabricClient.TestManagementClient.GetPartitionDataLossProgressAsync Method

Definition

Overloads

GetPartitionDataLossProgressAsync(Guid, TimeSpan, CancellationToken)

Gets the progress of a test command started using StartPartitionDataLossAsync().

GetPartitionDataLossProgressAsync(Guid, TimeSpan)

Gets the progress of a test command started using StartPartitionDataLossAsync().

GetPartitionDataLossProgressAsync(Guid)

Gets the progress of a test command started using StartPartitionDataLossAsync().

GetPartitionDataLossProgressAsync(Guid, CancellationToken)

Gets the progress of a test command started using StartPartitionDataLossAsync().

GetPartitionDataLossProgressAsync(Guid, TimeSpan, CancellationToken)

Gets the progress of a test command started using StartPartitionDataLossAsync().

public System.Threading.Tasks.Task<System.Fabric.PartitionDataLossProgress> GetPartitionDataLossProgressAsync (Guid operationId, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.GetPartitionDataLossProgressAsync : Guid * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.PartitionDataLossProgress>
Public Function GetPartitionDataLossProgressAsync (operationId As Guid, timeout As TimeSpan, cancellationToken As CancellationToken) As Task(Of PartitionDataLossProgress)

Parameters

operationId
Guid

The operationId passed in when the test command was starting using StartPartitionDataLossAsync().

timeout
TimeSpan

Timeout.

cancellationToken
CancellationToken

This token can be signalled to abort this operation before it finishes

Returns

A PartitionDataLossProgress object, containing TestCommandProgressState and PartitionDataLossResult.

Remarks

The FaultAnalysisService must be enabled to use this API.

If the returned PartitionDataLossProgress.State == Faulted, examine PartitionDataLossProgress.Result.Exception to determine why. PartitionDataLossProgress.Result.Exception values: - ArgumentException - the input was invalid. - FabricException, with an ErrorCode property of: - PartitionNotFound - the specified partition was not found, or is not a partition that belongs to the specified service. - FabricInvalidForStatelessServicesException - this operation is not valid for stateless services.

Applies to

GetPartitionDataLossProgressAsync(Guid, TimeSpan)

Gets the progress of a test command started using StartPartitionDataLossAsync().

public System.Threading.Tasks.Task<System.Fabric.PartitionDataLossProgress> GetPartitionDataLossProgressAsync (Guid operationId, TimeSpan timeout);
member this.GetPartitionDataLossProgressAsync : Guid * TimeSpan -> System.Threading.Tasks.Task<System.Fabric.PartitionDataLossProgress>
Public Function GetPartitionDataLossProgressAsync (operationId As Guid, timeout As TimeSpan) As Task(Of PartitionDataLossProgress)

Parameters

operationId
Guid

The operationId passed in when the test command was starting using StartPartitionDataLossAsync().

timeout
TimeSpan

Timeout.

Returns

A PartitionDataLossProgress object, containing TestCommandProgressState and PartitionDataLossResult.

Remarks

The FaultAnalysisService must be enabled to use this API.

If the returned PartitionDataLossProgress.State == Faulted, examine PartitionDataLossProgress.Result.Exception to determine why. PartitionDataLossProgress.Result.Exception values: - ArgumentException - the input was invalid. - FabricException, with an ErrorCode property of: - PartitionNotFound - the specified partition was not found, or is not a partition that belongs to the specified service. - FabricInvalidForStatelessServicesException - this operation is not valid for stateless services.

Applies to

GetPartitionDataLossProgressAsync(Guid)

Gets the progress of a test command started using StartPartitionDataLossAsync().

public System.Threading.Tasks.Task<System.Fabric.PartitionDataLossProgress> GetPartitionDataLossProgressAsync (Guid operationId);
member this.GetPartitionDataLossProgressAsync : Guid -> System.Threading.Tasks.Task<System.Fabric.PartitionDataLossProgress>
Public Function GetPartitionDataLossProgressAsync (operationId As Guid) As Task(Of PartitionDataLossProgress)

Parameters

operationId
Guid

The operationId passed in when the test command was starting using StartPartitionDataLossAsync().

Returns

A PartitionDataLossProgress object, containing TestCommandProgressState and PartitionDataLossResult.

Remarks

The FaultAnalysisService must be enabled to use this API.

If the returned PartitionDataLossProgress.State == Faulted, examine PartitionDataLossProgress.Result.Exception to determine why. PartitionDataLossProgress.Result.Exception values: - ArgumentException - the input was invalid. - FabricException, with an ErrorCode property of: - PartitionNotFound - the specified partition was not found, or is not a partition that belongs to the specified service. - FabricInvalidForStatelessServicesException - this operation is not valid for stateless services.

Applies to

GetPartitionDataLossProgressAsync(Guid, CancellationToken)

Gets the progress of a test command started using StartPartitionDataLossAsync().

public System.Threading.Tasks.Task<System.Fabric.PartitionDataLossProgress> GetPartitionDataLossProgressAsync (Guid operationId, System.Threading.CancellationToken cancellationToken);
member this.GetPartitionDataLossProgressAsync : Guid * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.PartitionDataLossProgress>
Public Function GetPartitionDataLossProgressAsync (operationId As Guid, cancellationToken As CancellationToken) As Task(Of PartitionDataLossProgress)

Parameters

operationId
Guid

The operationId passed in when the test command was starting using StartPartitionDataLossAsync().

cancellationToken
CancellationToken

This token can be signalled to abort this operation before it finishes

Returns

A PartitionDataLossProgress object, containing TestCommandProgressState and PartitionDataLossResult.

Remarks

The FaultAnalysisService must be enabled to use this API.

If the returned PartitionDataLossProgress.State == Faulted, examine PartitionDataLossProgress.Result.Exception to determine why. PartitionDataLossProgress.Result.Exception values: - ArgumentException - the input was invalid. - FabricException, with an ErrorCode property of: - PartitionNotFound - the specified partition was not found, or is not a partition that belongs to the specified service. - FabricInvalidForStatelessServicesException - this operation is not valid for stateless services.

Applies to