Class SnapshotHandlerContext


  • public class SnapshotHandlerContext
    extends Object
    Snapshot operation handler context.
    • Constructor Detail

      • SnapshotHandlerContext

        public SnapshotHandlerContext​(SnapshotMetadata metadata,
                                      @Nullable
                                      @Nullable Collection<String> grps,
                                      ClusterNode locNode,
                                      File snpDir,
                                      boolean streamerWrn,
                                      boolean check)
        Parameters:
        metadata - Snapshot metadata.
        grps - The names of the cache groups on which the operation is performed. False otherwise. Always false for snapshot restoration.
        locNode - Local node.
        snpDir - The full path to the snapshot files.
        streamerWrn - True if concurrent streaming updates occurred during snapshot operation.
        check - If true, calculates and compares partition hashes. Otherwise, only basic snapshot validation is launched.
    • Method Detail

      • snapshotDirectory

        public File snapshotDirectory()
        Returns:
        The full path to the snapshot files.
      • groups

        @Nullable
        public @Nullable Collection<String> groups()
        Returns:
        The names of the cache groups on which the operation is performed. May be null if the operation is performed on all available cache groups.
      • localNode

        public ClusterNode localNode()
        Returns:
        Local node.
      • streamerWarning

        public boolean streamerWarning()
        Returns:
        True if concurrent streaming updates occurred during snapshot operation. False otherwise.
      • check

        public boolean check()
        Returns:
        If true, calculates and compares partition hashes. Otherwise, only basic snapshot validation is launched.