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
| 构造器和说明 |
|---|
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.
|
| 限定符和类型 | 方法和说明 |
|---|---|
T |
createAndRestore(List<? extends Collection<S>> restoreOptions)
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) throws Exception
restoreOptions - list of prioritized state snapshot alternatives for recovery.Exception - if the backend could not be created or restored.Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.