public interface TaskRestoreManager
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes all initiated resources include storage engines
|
void |
init(Checkpoint checkpoint)
Initialize state resources such as store directories.
|
java.util.concurrent.CompletableFuture<java.lang.Void> |
restore()
Restore state from checkpoints, state snapshots and changelogs.
|
void init(Checkpoint checkpoint)
java.util.concurrent.CompletableFuture<java.lang.Void> restore()
ContainerStorageManager
. In case of
interrupt/shutdown signals from SamzaContainer
, ContainerStorageManager
may interrupt the restore
thread.
Note: Typically, interrupt signals don't bubble up as InterruptedException
unless the restore thread is
waiting on IO/network. In case of busy looping, implementors are expected to check the interrupt status of the
thread periodically and shutdown gracefully before throwing InterruptedException
upstream.
SamzaContainer
will not wait for clean up and the interrupt signal is the best effort by the container
to notify that its shutting down.void close()