FabricReplicator Class
- java.
lang. Object - PrimaryReplicator
- Replicator
- system.
fabric. FabricReplicator
- system.
public class FabricReplicator implements Replicator
Replicates state for high availability and reliability.
Remarks:Provides the default implementation of the StateReplicator, Replicator, and PrimaryReplicator interfaces, which user services can use, along with their implementation of the StateProvider interface. An instance of the system.fabric.FabricReplicator class is obtained via the createReplicator(StateProvider stateProvider, ReplicatorSettings replicatorSettings) method, which can be cast to StateReplicator for use.
Constructor Summary
Constructor | Description |
---|---|
FabricReplicator(long replicator) |
Creates instance of FabricReplicator. |
Method Summary
Modifier and Type | Method and Description |
---|---|
void |
abort()
This supports the Service Fabric infrastructure and is not meant to be used directly from your code. |
CompletableFuture |
buildReplicaAsync(ReplicaInformation replicaInfo, CancellationToken cancellationToken)
This supports the Service Fabric infrastructure and is not meant to be used directly from your code. |
CompletableFuture |
changeRoleAsync(Epoch epoch, ReplicaRole role, CancellationToken cancellationToken)
This supports the Service Fabric infrastructure and is not meant to be used directly from your code. |
CompletableFuture |
closeAsync(CancellationToken cancellationToken)
This supports the Service Fabric infrastructure and is not meant to be used directly from your code. |
long |
getCatchUpCapability()
This supports the Service Fabric infrastructure and is not meant to be used directly from your code. |
long |
getCurrentProgress()
This supports the Service Fabric infrastructure and is not meant to be used directly from your code. |
CompletableFuture<Boolean> |
onDataLossAsync(CancellationToken cancellationToken)
This supports the Service Fabric infrastructure and is not meant to be used directly from your code. |
CompletableFuture<String> |
openAsync(CancellationToken cancellationToken)
This supports the Service Fabric infrastructure and is not meant to be used directly from your code. |
void |
removeReplica(long replicaId)
This supports the Service Fabric infrastructure and is not meant to be used directly from your code.
Remarks: This supports the Service Fabric infrastructure and is not meant to be used directly from your code. |
void |
updateCatchUpReplicaSetConfiguration(ReplicaSetConfiguration currentConfiguration, ReplicaSetConfiguration previousConfiguration)
This supports the Service Fabric infrastructure and is not meant to be used directly from your code. |
void |
updateCurrentReplicaSetConfiguration(ReplicaSetConfiguration currentConfiguration)
This supports the Service Fabric infrastructure and is not meant to be used directly from your code.
Remarks: This supports the Service Fabric infrastructure and is not meant to be used directly from your code. |
CompletableFuture |
updateEpochAsync(Epoch epoch, CancellationToken cancellationToken)
This supports the Service Fabric infrastructure and is not meant to be used directly from your code. |
CompletableFuture |
waitForCatchUpQuorumAsync(ReplicaSetQuorumMode quorumMode, CancellationToken cancellationToken)
This supports the Service Fabric infrastructure and is not meant to be used directly from your code. For Internal Use Only. |
Constructor Details
FabricReplicator
protected FabricReplicator(long replicator)
Creates instance of FabricReplicator.
Parameters:
Method Details
abort
public void abort()
This supports the Service Fabric infrastructure and is not meant to be used directly from your code.
Overrides:
FabricReplicator.abort()buildReplicaAsync
public CompletableFuture buildReplicaAsync(ReplicaInformation replicaInfo, CancellationToken cancellationToken)
This supports the Service Fabric infrastructure and is not meant to be used directly from your code.
Overrides:
FabricReplicator.buildReplicaAsync(ReplicaInformation replicaInfo, CancellationToken cancellationToken)Parameters:
CancellationToken object to indicate the cancellation status of the operation.
Returns:
changeRoleAsync
public CompletableFuture changeRoleAsync(Epoch epoch, ReplicaRole role, CancellationToken cancellationToken)
This supports the Service Fabric infrastructure and is not meant to be used directly from your code.
Overrides:
FabricReplicator.changeRoleAsync(Epoch epoch, ReplicaRole role, CancellationToken cancellationToken)Parameters:
Returns:
closeAsync
public CompletableFuture closeAsync(CancellationToken cancellationToken)
This supports the Service Fabric infrastructure and is not meant to be used directly from your code.
Overrides:
FabricReplicator.closeAsync(CancellationToken cancellationToken)Parameters:
Returns:
getCatchUpCapability
public long getCatchUpCapability()
This supports the Service Fabric infrastructure and is not meant to be used directly from your code.
Overrides:
FabricReplicator.getCatchUpCapability()Returns:
getCurrentProgress
public long getCurrentProgress()
This supports the Service Fabric infrastructure and is not meant to be used directly from your code.
Overrides:
FabricReplicator.getCurrentProgress()Returns:
onDataLossAsync
public CompletableFuture
This supports the Service Fabric infrastructure and is not meant to be used directly from your code.
Overrides:
FabricReplicator.onDataLossAsync(CancellationToken cancellationToken)Parameters:
CancellationToken object to indicate the cancellation status of the operation.
Returns:
openAsync
public CompletableFuture
This supports the Service Fabric infrastructure and is not meant to be used directly from your code.
Overrides:
FabricReplicator.openAsync(CancellationToken cancellationToken)Parameters:
Returns:
removeReplica
public void removeReplica(long replicaId)
This supports the Service Fabric infrastructure and is not meant to be used directly from your code.
Remarks: This supports the Service Fabric infrastructure and is not meant to be used directly from your code.
Overrides:
FabricReplicator.removeReplica(long replicaId)Parameters:
updateCatchUpReplicaSetConfiguration
public void updateCatchUpReplicaSetConfiguration(ReplicaSetConfiguration currentConfiguration, ReplicaSetConfiguration previousConfiguration)
This supports the Service Fabric infrastructure and is not meant to be used directly from your code.
Overrides:
FabricReplicator.updateCatchUpReplicaSetConfiguration(ReplicaSetConfiguration currentConfiguration, ReplicaSetConfiguration previousConfiguration)Parameters:
updateCurrentReplicaSetConfiguration
public void updateCurrentReplicaSetConfiguration(ReplicaSetConfiguration currentConfiguration)
This supports the Service Fabric infrastructure and is not meant to be used directly from your code.
Remarks: This supports the Service Fabric infrastructure and is not meant to be used directly from your code.
Overrides:
FabricReplicator.updateCurrentReplicaSetConfiguration(ReplicaSetConfiguration currentConfiguration)Parameters:
updateEpochAsync
public CompletableFuture updateEpochAsync(Epoch epoch, CancellationToken cancellationToken)
This supports the Service Fabric infrastructure and is not meant to be used directly from your code.
Overrides:
FabricReplicator.updateEpochAsync(Epoch epoch, CancellationToken cancellationToken)Parameters:
Returns:
waitForCatchUpQuorumAsync
public CompletableFuture waitForCatchUpQuorumAsync(ReplicaSetQuorumMode quorumMode, CancellationToken cancellationToken)
This supports the Service Fabric infrastructure and is not meant to be used directly from your code.
For Internal Use Only.
Overrides:
FabricReplicator.waitForCatchUpQuorumAsync(ReplicaSetQuorumMode quorumMode, CancellationToken cancellationToken)Parameters:
CancellationToken object to indicate the cancellation status of the operation.
Returns:
Applies to
Azure SDK for Java