Package org.elasticsearch.snapshots
Class InFlightShardSnapshotStates
java.lang.Object
org.elasticsearch.snapshots.InFlightShardSnapshotStates
public final class InFlightShardSnapshotStates
extends java.lang.Object
Holds information about currently in-flight shard level snapshot or clone operations on a per-shard level.
Concretely, this means information on which shards are actively being written to in the repository currently
as well as the latest written shard generation per shard in case there is a shard generation for a shard that has
been cleanly written out to the repository but not yet made part of the current
RepositoryData
through a snapshot finalization.-
Method Summary
Modifier and Type Method Description static InFlightShardSnapshotStates
forRepo(java.lang.String repoName, java.util.List<SnapshotsInProgress.Entry> snapshots)
Compute information about all shard ids that currently have in-flight state for the given repository.
-
Method Details
-
forRepo
public static InFlightShardSnapshotStates forRepo(java.lang.String repoName, java.util.List<SnapshotsInProgress.Entry> snapshots)Compute information about all shard ids that currently have in-flight state for the given repository.- Parameters:
repoName
- repository namesnapshots
- snapshots in progress- Returns:
- in flight shard states for all snapshot operation running for the given repository name
-