Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
themeMidnight
titleSnapshotLifecycleListener.java (alternate version)
collapsetrue
/**
 * Snapshot local lifecycle listener.
 */
public interface SnapshotLifecycleListener extends Extension {
        /**
     * @paramCalled reqlocally Snapshotafter operationthe startsnapshot request.
files have been created on * @throws IgniteCheckedException If failed.
     */
    public void beforeCreate(SnapshotOperationRequest req) throws IgniteCheckedException;

    /*the node.
     *
     * @param metadata Snapshot metdata.
     * @throws IgniteCheckedException If failed.
     */
    public void afterCreateonCreate(SnapshotMetadata metadata) throws IgniteCheckedException;

    /**
     * @param metadata Snapshot metdata.
     * @param grps Cache groups to be restored ({@code null} if all cache groups are restored from the snapshot).
     * @throws IgniteCheckedException If failed.
     */
    public void beforeValidate(SnapshotMetadata metadata, @Nullable Collection<String> grps) throws IgniteCheckedException;

    /**
     * @param metadata Snapshot metdata.
     * @param grps Cache groups to be restored ({@code null} if all cache groups are restored from the snapshot).
     * @throws IgniteCheckedException If failed. IgniteCheckedException;

     /**/
     public* voidCalled afterValidate(SnapshotMetadata metadata, @Nullable Collection<String> grps) throws IgniteCheckedException;

locally before performing a snapshot consistency check.
     /**
     * @param metadata Snapshot metdata.
     * @param grps Cache groups to be restored ({@code null} if all cache groups are restored from the snapshot).
     * @throws IgniteCheckedException If failed.
     */
    public void beforeRestoreonCheck(SnapshotMetadata metadata, @Nullable Collection<String> grps) throws IgniteCheckedException;

    /**
     * Called locally before restoring cache data files from a snapshot.
     *
     * @param metadata Snapshot metdata.
     * @param grps Cache groups to be restored ({@code null} if all cache groups are restored from the snapshot).
     * @throws IgniteCheckedException If failed.
     */
    public void afterRestoreonRestore(SnapshotMetadata metadata, @Nullable Collection<String> grps) throws IgniteCheckedException;
}

...