public class SnapshotPartitionsVerifyHandler extends Object implements SnapshotHandler<Map<PartitionKeyV2,PartitionHashRecordV2>>
| Modifier and Type | Field and Description |
|---|---|
protected GridCacheSharedContext<?,?> |
cctx
Shared context.
|
| Constructor and Description |
|---|
SnapshotPartitionsVerifyHandler(GridCacheSharedContext<?,?> cctx) |
| Modifier and Type | Method and Description |
|---|---|
void |
complete(String name,
Collection<SnapshotHandlerResult<Map<PartitionKeyV2,PartitionHashRecordV2>>> results)
Processing the results of the
SnapshotHandler.invoke(SnapshotHandlerContext) method received from all nodes. |
Map<PartitionKeyV2,PartitionHashRecordV2> |
invoke(SnapshotHandlerContext opCtx)
Local processing of a snapshot operation.
|
protected boolean |
isPunchHoleEnabled(SnapshotHandlerContext opCtx,
Set<Integer> grpIds) |
protected boolean |
skipHash()
Provides flag of full hash calculation.
|
SnapshotHandlerType |
type()
Snapshot handler type.
|
protected final GridCacheSharedContext<?,?> cctx
public SnapshotPartitionsVerifyHandler(GridCacheSharedContext<?,?> cctx)
cctx - Shared context.public SnapshotHandlerType type()
type in interface SnapshotHandler<Map<PartitionKeyV2,PartitionHashRecordV2>>public Map<PartitionKeyV2,PartitionHashRecordV2> invoke(SnapshotHandlerContext opCtx) throws IgniteCheckedException
invoke in interface SnapshotHandler<Map<PartitionKeyV2,PartitionHashRecordV2>>opCtx - Snapshot handler context.SnapshotHandlerResult.data() method
passed into SnapshotHandler.complete(String, Collection) handler method.IgniteCheckedExceptionpublic void complete(String name, Collection<SnapshotHandlerResult<Map<PartitionKeyV2,PartitionHashRecordV2>>> results) throws IgniteCheckedException
SnapshotHandler.invoke(SnapshotHandlerContext) method received from all nodes. This method
is called on coordinator node for SnapshotHandlerType.CREATE handler type and on the random node
containing the snapshot data for SnapshotHandlerType.RESTORE.
Note: If this method fails, the entire cluster-wide snapshot operation will be aborted and the changes made by it will be rolled back.
complete in interface SnapshotHandler<Map<PartitionKeyV2,PartitionHashRecordV2>>name - Snapshot name.results - Results from all nodes.SnapshotWarningException - If a warning of snapshot operation occurred.IgniteCheckedExceptionSnapshotHandlerResultprotected boolean skipHash()
True if full partition hash calculation is required. False otherwise.protected boolean isPunchHoleEnabled(SnapshotHandlerContext opCtx, Set<Integer> grpIds)
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023