Class CreateSnapshotGlobalState

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

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

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:
  • Constructor Details

    • CreateSnapshotGlobalState

      public CreateSnapshotGlobalState(UUID operationId, SnapshotStatus status, Set<String> nodeNames, Instant startTime, Set<Integer> tableIds, Set<org.apache.ignite.table.QualifiedName> tableNames, Set<Integer> structureIds, org.apache.ignite.internal.hlc.HybridTimestamp fromTimestamp, org.apache.ignite.internal.hlc.HybridTimestamp timestamp, String description, @Nullable @Nullable UUID parentSnapshotId, Set<UUID> dependentSnapshotIds, SnapshotUri destination, @Nullable @Nullable String encryptionProviderName)
      Constructor.
      Parameters:
      operationId - Operation Id.
      status - Status of the Snapshot Operation.
      nodeNames - Names of nodes that participate in the Snapshot Operation.
      tableIds - IDs of tables that participate in the Snapshot Operation.
      tableNames - Names of tables that participate in the Snapshot Operation.
      structureIds - IDs of structures that participate in the Snapshot Operation.
      fromTimestamp - Inclusive lower bound of Snapshot interval for Incremental Snapshots, or HybridTimestamp.MIN_VALUE for Full Snapshots.
      timestamp - Inclusive upper bound of Snapshot interval.
      description - Description of the Operation.
      parentSnapshotId - ID of the Parent Snapshot for Incremental Snapshots, null for Full Snapshots.
      dependentSnapshotIds - IDs of Incremental Snapshots which are based on this Snapshot
      destination - Destination of the snapshot.
  • Method Details

    • snapshotId

      public UUID snapshotId()
      Snapshot ID.
    • tableIds

      public Set<Integer> tableIds()
      IDs of tables that participate in the Snapshot Operation.
    • tableNames

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

      public Set<Integer> structureIds()
      Description copied from class: GlobalSnapshotState
      Ids of the structures that participate in the Snapshot Operation.
      Overrides:
      structureIds in class GlobalSnapshotState
    • fromTimestamp

      public org.apache.ignite.internal.hlc.HybridTimestamp fromTimestamp()
      Inclusive lower bound of Snapshot interval.
    • timestamp

      public org.apache.ignite.internal.hlc.HybridTimestamp timestamp()
      Inclusive upper bound of Snapshot interval.
    • parentSnapshotId

      @Nullable public @Nullable UUID parentSnapshotId()
      ID of the Parent Snapshot for Incremental Snapshot, null for Full Snapshot.
    • dependentSnapshotIds

      public Set<UUID> dependentSnapshotIds()
      IDs of Incremental Snapshots which are based on this Snapshot.
    • encryptionProviderName

      @Nullable public @Nullable String encryptionProviderName()
    • toString

      public String toString()
      Overrides:
      toString in class GlobalSnapshotState