Module org.elasticsearch.server
Class PeerOnlyRecoveryPlannerService
java.lang.Object
org.elasticsearch.indices.recovery.plan.PeerOnlyRecoveryPlannerService
- All Implemented Interfaces:
RecoveryPlannerService
Service in charge of computing a
ShardRecoveryPlan
using only the physical files from the source peer.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
computeRecoveryPlan
(ShardId shardId, String shardStateIdentifier, Store.MetadataSnapshot sourceMetadata, Store.MetadataSnapshot targetMetadata, long startingSeqNo, int translogOps, Version targetVersion, boolean useSnapshots, ActionListener<ShardRecoveryPlan> listener)
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
PeerOnlyRecoveryPlannerService
public PeerOnlyRecoveryPlannerService()
-
-
Method Details
-
computeRecoveryPlan
public void computeRecoveryPlan(ShardId shardId, @Nullable String shardStateIdentifier, Store.MetadataSnapshot sourceMetadata, Store.MetadataSnapshot targetMetadata, long startingSeqNo, int translogOps, Version targetVersion, boolean useSnapshots, ActionListener<ShardRecoveryPlan> listener) - Specified by:
computeRecoveryPlan
in interfaceRecoveryPlannerService
-