Class IncrementalSnapshotMetadata

    • Constructor Detail

      • IncrementalSnapshotMetadata

        public IncrementalSnapshotMetadata​(UUID rqId,
                                           String snpName,
                                           int incIdx,
                                           String consId,
                                           String folderName,
                                           long snapshotTime,
                                           WALPointer incSnpRec)
        Parameters:
        rqId - Unique request id.
        snpName - Snapshot name.
        incIdx - Incremental snapshot index.
        consId - Consistent id of a node to which this metadata relates.
        folderName - Directory name which stores the data files.
        incSnpRec - Pointer to IncrementalSnapshotFinishRecord.
        snapshotTime - Timestamp of the snapshot creation.
    • Method Detail

      • requestId

        public UUID requestId()
        Returns:
        Snapshot request ID.
      • snapshotName

        public String snapshotName()
        Returns:
        Snapshot name.
      • consistentId

        public String consistentId()
        Returns:
        Consistent ID of a node to which this metadata relates.
      • incrementIndex

        public int incrementIndex()
        Returns:
        Incremental snapshot index.
      • folderName

        public String folderName()
        Returns:
        Name of the folder that contains snapshot data.
      • snapshotTime

        public long snapshotTime()
        Returns:
        Creation timestamp in milliseconds since Unix epoch.
      • matchBaseSnapshot

        public boolean matchBaseSnapshot​(SnapshotMetadata meta)
        Checks that incremental snapshot is based on this full snapshot.
        Parameters:
        meta - Full snapshot metadata to verify.
        Returns:
        false if given metadata doesn't match full snapshot.