Class SnapshotOperationRequest
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.persistence.snapshot.SnapshotOperationRequest
-
- All Implemented Interfaces:
Serializable
public class SnapshotOperationRequest extends Object implements Serializable
Snapshot operation start request forDistributedProcessinitiate message.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SnapshotOperationRequest(UUID reqId, UUID opNodeId, String snpName, String snpPath, @Nullable Collection<String> grps, Set<UUID> nodes, boolean incremental, int incIdx, boolean onlyPrimary, boolean dump, boolean compress, boolean encrypt)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancompress()booleandump()booleanencrypt()Throwableerror()voiderror(Throwable err)@Nullable Collection<String>groups()booleanincremental()intincrementIndex()SnapshotMetadatameta()voidmeta(SnapshotMetadata meta)Stores snapshot metadata.Set<UUID>nodes()booleanonlyPrimary()UUIDoperationalNodeId()UUIDrequestId()StringsnapshotName()StringsnapshotPath()protected booleanstartStageEnded()protected voidstartStageEnded(boolean startStageEnded)longstartTime()booleanstreamerWarning()TrueIf the streamer warning flag is set.booleanstreamerWarning(boolean val)Sets the streamer warning flag.StringtoString()List<String>warnings()voidwarnings(List<String> warnings)
-
-
-
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-Trueif incremental snapshot requested.incIdx- Incremental snapshot index.onlyPrimary- Iftruesnapshot only primary copies of partitions.dump- Iftruethen create dump.compress- Iftruethen compress partition files.encrypt- Iftruethen 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:
Trueif incremental snapshot requested.
-
incrementIndex
public int incrementIndex()
- Returns:
- Incremental index.
-
onlyPrimary
public boolean onlyPrimary()
- Returns:
- If
truesnapshot only primary copies of partitions.
-
dump
public boolean dump()
- Returns:
- If
truethen create dump.
-
compress
public boolean compress()
- Returns:
- If
truethen compress partition files.
-
encrypt
public boolean encrypt()
- Returns:
- If
truethen content of dump encrypted.
-
startTime
public long startTime()
- Returns:
- Start time.
-
startStageEnded
protected boolean startStageEnded()
- Returns:
- Flag indicating that the
DistributedProcess.DistributedProcessType.START_SNAPSHOTphase has completed.
-
startStageEnded
protected void startStageEnded(boolean startStageEnded)
- Parameters:
startStageEnded- Flag indicating that theDistributedProcess.DistributedProcessType.START_SNAPSHOTphase has completed.
-
warnings
public void warnings(List<String> warnings)
- Parameters:
warnings- Warnings of snapshot operation.
-
streamerWarning
public boolean streamerWarning()
TrueIf the streamer warning flag is set.Falseotherwise.
-
streamerWarning
public boolean streamerWarning(boolean val)
Sets the streamer warning flag.
-
meta
public SnapshotMetadata meta()
- Returns:
- Snapshot metadata.
-
meta
public void meta(SnapshotMetadata meta)
Stores snapshot metadata.
-
-