
org.elasticsearch.repositories.FinalizeSnapshotContext Maven / Gradle / Ivy
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
package org.elasticsearch.repositories;
import org.apache.lucene.util.SetOnce;
import org.elasticsearch.action.ActionListener;
import org.elasticsearch.action.DelegatingActionListener;
import org.elasticsearch.cluster.ClusterState;
import org.elasticsearch.cluster.SnapshotsInProgress;
import org.elasticsearch.cluster.metadata.Metadata;
import org.elasticsearch.index.IndexVersion;
import org.elasticsearch.snapshots.SnapshotInfo;
import org.elasticsearch.snapshots.SnapshotsService;
import java.util.Map;
import java.util.Set;
import java.util.function.Consumer;
/**
* Context for finalizing a snapshot.
*/
public final class FinalizeSnapshotContext extends DelegatingActionListener {
private final ShardGenerations updatedShardGenerations;
/**
* Obsolete shard generations map computed from the cluster state update that this finalization executed in
* {@link #updatedClusterState}.
*/
private final SetOnce
© 2015 - 2025 Weber Informatics LLC | Privacy Policy