Class SnapshotOperationRequest

    • Constructor Detail

      • SnapshotOperationRequest

        public SnapshotOperationRequest​(UUID reqId,
                                        UUID opNodeId,
                                        String snpName,
                                        String snpPath,
                                        @Nullable
                                        @Nullable Collection<String> grps,
                                        Set<UUID> nodes,
                                        boolean incremental,
                                        int incIdx,
                                        boolean onlyPrimary,
                                        boolean dump,
                                        boolean compress,
                                        boolean encrypt)
        Parameters:
        reqId - Request ID.
        opNodeId - Operational node ID.
        snpName - Snapshot name.
        snpPath - Snapshot directory path.
        grps - List of cache group names.
        nodes - Baseline node IDs that must be alive to complete the operation.
        incremental - True if incremental snapshot requested.
        incIdx - Incremental snapshot index.
        onlyPrimary - If true snapshot only primary copies of partitions.
        dump - If true then create dump.
        compress - If true then compress partition files.
        encrypt - If true then content of dump encrypted.
    • Method Detail

      • requestId

        public UUID requestId()
        Returns:
        Request ID.
      • snapshotName

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

        public String snapshotPath()
        Returns:
        Snapshot directory path.
      • groups

        @Nullable
        public @Nullable Collection<String> groups()
        Returns:
        List of cache group names.
      • nodes

        public Set<UUID> nodes()
        Returns:
        Baseline node IDs that must be alive to complete the operation.
      • operationalNodeId

        public UUID operationalNodeId()
        Returns:
        Operational node ID.
      • error

        public Throwable error()
        Returns:
        Exception occurred during snapshot operation processing.
      • error

        public void error​(Throwable err)
        Parameters:
        err - Exception occurred during snapshot operation processing.
      • incremental

        public boolean incremental()
        Returns:
        True if incremental snapshot requested.
      • incrementIndex

        public int incrementIndex()
        Returns:
        Incremental index.
      • onlyPrimary

        public boolean onlyPrimary()
        Returns:
        If true snapshot only primary copies of partitions.
      • dump

        public boolean dump()
        Returns:
        If true then create dump.
      • compress

        public boolean compress()
        Returns:
        If true then compress partition files.
      • encrypt

        public boolean encrypt()
        Returns:
        If true then content of dump encrypted.
      • startTime

        public long startTime()
        Returns:
        Start time.
      • warnings

        public List<String> warnings()
        Returns:
        Warnings of snapshot operation.
      • warnings

        public void warnings​(List<String> warnings)
        Parameters:
        warnings - Warnings of snapshot operation.
      • streamerWarning

        public boolean streamerWarning()
        True If the streamer warning flag is set. False otherwise.
      • streamerWarning

        public boolean streamerWarning​(boolean val)
        Sets the streamer warning flag.