Class RestoreSnapshotGlobalState
java.lang.Object
org.gridgain.internal.snapshots.communication.metastorage.GlobalSnapshotState
org.gridgain.internal.snapshots.communication.metastorage.RestoreSnapshotGlobalState
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.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRestoreSnapshotGlobalState(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 String encryptionProviderName, boolean force) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionint@Nullable Stringbooleanforce()If force flag was used for the operation.Set<org.apache.ignite.table.QualifiedName>Names of the structures that participate in the Snapshot Operation.Set<org.apache.ignite.table.QualifiedName>Names of the tables that participate in the Snapshot Operation.toString()Methods inherited from class org.gridgain.internal.snapshots.communication.metastorage.GlobalSnapshotState
description, nodeNames, operationId, snapshotUri, startTime, status
-
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- Iffalse, snapshot restoration should fail if specified structures already exist.
-
-
Method Details
-
targetSnapshotId
-
catalogVersion
public int catalogVersion() -
tableNames
Description copied from class:GlobalSnapshotStateNames of the tables that participate in the Snapshot Operation.- Overrides:
tableNamesin classGlobalSnapshotState
-
structureNames
Description copied from class:GlobalSnapshotStateNames of the structures that participate in the Snapshot Operation.- Overrides:
structureNamesin classGlobalSnapshotState
-
encryptionProviderName
-
toString
- Overrides:
toStringin classGlobalSnapshotState
-
force
public boolean force()Description copied from class:GlobalSnapshotStateIf force flag was used for the operation. Meaning differs for create and restore operations.- Overrides:
forcein classGlobalSnapshotState
-