Class RestoreSnapshotGlobalState

java.lang.Object
org.gridgain.internal.snapshots.communication.metastorage.GlobalSnapshotState
org.gridgain.internal.snapshots.communication.metastorage.RestoreSnapshotGlobalState

public class RestoreSnapshotGlobalState extends GlobalSnapshotState
Represents a Global Snapshot State, that is, state of the whole Snapshot operation (used during Snapshot restoration).

Global State is generated and updated only by the Snapshot Coordinator and serves as a single point of truth and aggregation for all Local States.

See Also:
  • Field Details

    • UNKNOWN_CATALOG_VERSION

      public static final int UNKNOWN_CATALOG_VERSION
      See Also:
  • Constructor Details

    • RestoreSnapshotGlobalState

      public RestoreSnapshotGlobalState(UUID operationId, SnapshotStatus status, Set<String> nodeNames, Set<org.apache.ignite.table.QualifiedName> tableNames, Set<org.apache.ignite.table.QualifiedName> structureNames, UUID targetSnapshotId, int catalogVersion, Instant startTime, String description, SnapshotUri source, @Nullable @Nullable String encryptionProviderName, boolean force)
      Constructor.
      Parameters:
      operationId - Operation Id.
      status - Status of the Snapshot Operation.
      nodeNames - Names of nodes that participate in the Snapshot Operation.
      targetSnapshotId - ID of the Snapshot to be restored.
      tableNames - Names of tables to be restored. If both this and structureNames are empty, restores all tables from the snapshot.
      structureNames - Names of structures to be restored. If both this and tableNames are empty, restores all structures from the snapshot.
      catalogVersion - Catalog version that should be used to obtain the temporary tables during restore.
      startTime - Start time of the Operation.
      description - User-friendly description.
      source - Source of the snapshot.
      force - If false, snapshot restoration should fail if specified structures already exist.
  • Method Details

    • targetSnapshotId

      public UUID targetSnapshotId()
    • catalogVersion

      public int catalogVersion()
    • tableNames

      public Set<org.apache.ignite.table.QualifiedName> tableNames()
      Description copied from class: GlobalSnapshotState
      Names of the tables that participate in the Snapshot Operation.
      Overrides:
      tableNames in class GlobalSnapshotState
    • structureNames

      public Set<org.apache.ignite.table.QualifiedName> structureNames()
      Description copied from class: GlobalSnapshotState
      Names of the structures that participate in the Snapshot Operation.
      Overrides:
      structureNames in class GlobalSnapshotState
    • encryptionProviderName

      @Nullable public @Nullable String encryptionProviderName()
    • toString

      public String toString()
      Overrides:
      toString in class GlobalSnapshotState
    • force

      public boolean force()
      Description copied from class: GlobalSnapshotState
      If force flag was used for the operation. Meaning differs for create and restore operations.
      Overrides:
      force in class GlobalSnapshotState