public class HeapSavepointStore extends Object implements SavepointStore
The life-cycle of savepoints is bound to the life-cycle of the cluster.
| Constructor and Description |
|---|
HeapSavepointStore()
Creates a heap-backed savepoint store.
|
| Modifier and Type | Method and Description |
|---|---|
void |
disposeSavepoint(String path,
ClassLoader classLoader)
Disposes the savepoint at the specified path.
|
Savepoint |
loadSavepoint(String path)
Loads the savepoint at the specified path.
|
void |
shutdown()
Shut downs the savepoint store.
|
<T extends Savepoint> |
storeSavepoint(T savepoint)
Stores the savepoint.
|
public HeapSavepointStore()
Savepoint are discarded on shutdown().
public <T extends Savepoint> String storeSavepoint(T savepoint) throws IOException
SavepointStorestoreSavepoint in interface SavepointStoreT - Savepoint typesavepoint - Savepoint to be storedIOExceptionpublic Savepoint loadSavepoint(String path) throws IOException
SavepointStoreloadSavepoint in interface SavepointStorepath - Path of savepoint to loadIOExceptionpublic void disposeSavepoint(String path, ClassLoader classLoader) throws Exception
SavepointStoreThe class loader is needed, because savepoints can currently point to
arbitrary snapshot StateHandle
instances, which need the user code class loader for deserialization.
disposeSavepoint in interface SavepointStorepath - Path of savepoint to disposeclassLoader - Class loader for disposalException - Failures during diposal are forwardedpublic void shutdown()
throws Exception
SavepointStoreOnly necessary for implementations where the savepoint life-cycle is bound to the cluster life-cycle.
shutdown in interface SavepointStoreException - Failures during shut down are forwardedCopyright © 2014–2016 The Apache Software Foundation. All rights reserved.