T - type of the restored backend.S - type of the supplied snapshots from which the backend restores.public class BackendRestorerProcedure<T extends Closeable & org.apache.flink.util.Disposable,S extends org.apache.flink.runtime.state.StateObject> extends Object
| Constructor and Description |
|---|
BackendRestorerProcedure(org.apache.flink.util.function.FunctionWithException<Collection<S>,T,Exception> instanceSupplier,
org.apache.flink.core.fs.CloseableRegistry backendCloseableRegistry,
String logDescription)
Creates a new backend restorer using the given backend supplier and the closeable registry.
|
| Modifier and Type | Method and Description |
|---|---|
T |
createAndRestore(List<? extends Collection<S>> restoreOptions,
org.apache.flink.runtime.state.StateObject.StateObjectSizeStatsCollector stats)
Creates a new state backend and restores it from the provided set of state snapshot
alternatives.
|
public BackendRestorerProcedure(@Nonnull org.apache.flink.util.function.FunctionWithException<Collection<S>,T,Exception> instanceSupplier, @Nonnull org.apache.flink.core.fs.CloseableRegistry backendCloseableRegistry, @Nonnull String logDescription)
instanceSupplier - factory function for new, empty backend instances.backendCloseableRegistry - registry to allow participation in task lifecycle, e.g. react
to cancel.@Nonnull public T createAndRestore(@Nonnull List<? extends Collection<S>> restoreOptions, @Nonnull org.apache.flink.runtime.state.StateObject.StateObjectSizeStatsCollector stats) throws Exception
restoreOptions - list of prioritized state snapshot alternatives for recovery.Exception - if the backend could not be created or restored.Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.