public class SnapshotPartitionsQuickVerifyHandler extends SnapshotPartitionsVerifyHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
WRN_MSG |
cctx| Constructor and Description |
|---|
SnapshotPartitionsQuickVerifyHandler(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 |
skipHash()
Provides flag of full hash calculation.
|
SnapshotHandlerType |
type()
Snapshot handler type.
|
isPunchHoleEnabledpublic static final String WRN_MSG
public SnapshotPartitionsQuickVerifyHandler(GridCacheSharedContext<?,?> cctx)
cctx - Shared context.public SnapshotHandlerType type()
type in interface SnapshotHandler<Map<PartitionKeyV2,PartitionHashRecordV2>>type in class SnapshotPartitionsVerifyHandlerpublic Map<PartitionKeyV2,PartitionHashRecordV2> invoke(SnapshotHandlerContext opCtx) throws IgniteCheckedException
invoke in interface SnapshotHandler<Map<PartitionKeyV2,PartitionHashRecordV2>>invoke in class SnapshotPartitionsVerifyHandleropCtx - 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>>complete in class SnapshotPartitionsVerifyHandlername - Snapshot name.results - Results from all nodes.SnapshotWarningException - If a warning of snapshot operation occurred.IgniteCheckedExceptionSnapshotHandlerResultprotected boolean skipHash()
skipHash in class SnapshotPartitionsVerifyHandlerTrue if full partition hash calculation is required. False otherwise.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023