public class DataStreamerUpdatesHandler extends Object implements SnapshotHandler<Boolean>
| Constructor and Description |
|---|
DataStreamerUpdatesHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
complete(String name,
Collection<SnapshotHandlerResult<Boolean>> results)
Processing the results of the
SnapshotHandler.invoke(SnapshotHandlerContext) method received from all nodes. |
Boolean |
invoke(SnapshotHandlerContext ctx)
Local processing of a snapshot operation.
|
SnapshotHandlerType |
type()
Snapshot handler type.
|
public static final String WRN_MSG
public SnapshotHandlerType type()
type in interface SnapshotHandler<Boolean>public Boolean invoke(SnapshotHandlerContext ctx)
invoke in interface SnapshotHandler<Boolean>ctx - Snapshot handler context.SnapshotHandlerResult.data() method
passed into SnapshotHandler.complete(String, Collection) handler method.public void complete(String name, Collection<SnapshotHandlerResult<Boolean>> results) throws SnapshotWarningException
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<Boolean>name - Snapshot name.results - Results from all nodes.SnapshotWarningException - If a warning of snapshot operation occurred.SnapshotHandlerResult
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023