Class SnapshotHandlerContext
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.persistence.snapshot.SnapshotHandlerContext
-
public class SnapshotHandlerContext extends Object
Snapshot operation handler context.
-
-
Constructor Summary
Constructors Constructor Description SnapshotHandlerContext(SnapshotMetadata metadata, @Nullable Collection<String> grps, ClusterNode locNode, File snpDir, boolean streamerWrn, boolean check)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheck()@Nullable Collection<String>groups()ClusterNodelocalNode()SnapshotMetadatametadata()FilesnapshotDirectory()booleanstreamerWarning()
-
-
-
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.Falseotherwise. Alwaysfalsefor snapshot restoration.locNode- Local node.snpDir- The full path to the snapshot files.streamerWrn-Trueif concurrent streaming updates occurred during snapshot operation.check- Iftrue, calculates and compares partition hashes. Otherwise, only basic snapshot validation is launched.
-
-
Method Detail
-
metadata
public SnapshotMetadata metadata()
- Returns:
- Snapshot metadata.
-
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
nullif the operation is performed on all available cache groups.
-
localNode
public ClusterNode localNode()
- Returns:
- Local node.
-
streamerWarning
public boolean streamerWarning()
- Returns:
Trueif concurrent streaming updates occurred during snapshot operation.Falseotherwise.
-
check
public boolean check()
- Returns:
- If
true, calculates and compares partition hashes. Otherwise, only basic snapshot validation is launched.
-
-