Module org.elasticsearch.server
Class ShardRecoveryPlan
java.lang.Object
org.elasticsearch.indices.recovery.plan.ShardRecoveryPlan
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionShardRecoveryPlan
(ShardRecoveryPlan.SnapshotFilesToRecover snapshotFilesToRecover, List<StoreFileMetadata> sourceFilesToRecover, List<StoreFileMetadata> filesPresentInTarget, long startingSeqNo, int translogOps, Store.MetadataSnapshot sourceMetadataSnapshot) ShardRecoveryPlan
(ShardRecoveryPlan.SnapshotFilesToRecover snapshotFilesToRecover, List<StoreFileMetadata> sourceFilesToRecover, List<StoreFileMetadata> filesPresentInTarget, long startingSeqNo, int translogOps, Store.MetadataSnapshot sourceMetadataSnapshot, ShardRecoveryPlan fallbackPlan) -
Method Summary
Modifier and TypeMethodDescriptionboolean
long
long
long
int
-
Constructor Details
-
ShardRecoveryPlan
public ShardRecoveryPlan(ShardRecoveryPlan.SnapshotFilesToRecover snapshotFilesToRecover, List<StoreFileMetadata> sourceFilesToRecover, List<StoreFileMetadata> filesPresentInTarget, long startingSeqNo, int translogOps, Store.MetadataSnapshot sourceMetadataSnapshot) -
ShardRecoveryPlan
public ShardRecoveryPlan(ShardRecoveryPlan.SnapshotFilesToRecover snapshotFilesToRecover, List<StoreFileMetadata> sourceFilesToRecover, List<StoreFileMetadata> filesPresentInTarget, long startingSeqNo, int translogOps, Store.MetadataSnapshot sourceMetadataSnapshot, @Nullable ShardRecoveryPlan fallbackPlan)
-
-
Method Details
-
getFilesPresentInTarget
-
getFilesPresentInTargetNames
-
getFilesPresentInTargetSizes
-
getSourceFilesToRecover
-
getFilesToRecoverNames
-
getFilesToRecoverSizes
-
getSnapshotFilesToRecover
-
getSourceMetadataSnapshot
-
getTotalSize
public long getTotalSize() -
getExistingSize
public long getExistingSize() -
getStartingSeqNo
public long getStartingSeqNo() -
getTranslogOps
public int getTranslogOps() -
canRecoverSnapshotFilesFromSourceNode
public boolean canRecoverSnapshotFilesFromSourceNode() -
getFallbackPlan
-