Skip to content

Commit

Permalink
[FLINK-10042][state] (part 1) Extract snapshot algorithms from inner …
Browse files Browse the repository at this point in the history
…classes of RocksDBKeyedStateBackend into full classes
  • Loading branch information
StefanRRichter committed Aug 21, 2018
1 parent 07bb90d commit aba02eb
Show file tree
Hide file tree
Showing 9 changed files with 1,317 additions and 987 deletions.
Expand Up @@ -28,8 +28,7 @@
*
* @param <S> type of the returned state object that represents the result of the snapshot operation.
*/
@FunctionalInterface
public interface SnapshotStrategy<S extends StateObject> {
public interface SnapshotStrategy<S extends StateObject> extends CheckpointListener {

/**
* Operation that writes a snapshot into a stream that is provided by the given {@link CheckpointStreamFactory} and
Expand Down
Expand Up @@ -882,6 +882,11 @@ private void processSnapshotMetaInfoForAllStates(
}
}
}

@Override
public void notifyCheckpointComplete(long checkpointId) throws Exception {
// nothing to do.
}
}

private interface StateFactory {
Expand Down

Large diffs are not rendered by default.

0 comments on commit aba02eb

Please sign in to comment.