public final class NotDuplicatingCheckpointStateToolset extends Object implements CheckpointStateToolset
CheckpointStateToolset
.Constructor and Description |
---|
NotDuplicatingCheckpointStateToolset() |
Modifier and Type | Method and Description |
---|---|
boolean |
canFastDuplicate(StreamStateHandle stateHandle)
Tells if we can duplicate the given
StreamStateHandle . |
List<StreamStateHandle> |
duplicate(List<StreamStateHandle> stateHandle)
Duplicates
StreamStateHandles into the path embedded inside of the
class. |
public NotDuplicatingCheckpointStateToolset()
public boolean canFastDuplicate(StreamStateHandle stateHandle) throws IOException
CheckpointStateToolset
StreamStateHandle
.
This should be a rather cheap operation, preferably not involving any remote accesses.
canFastDuplicate
in interface CheckpointStateToolset
stateHandle
- The handle to duplicateIOException
public List<StreamStateHandle> duplicate(List<StreamStateHandle> stateHandle) throws IOException
CheckpointStateToolset
StreamStateHandles
into the path embedded inside of the
class.
You should first check if you can duplicate with CheckpointStateToolset.canFastDuplicate(StreamStateHandle)
.
duplicate
in interface CheckpointStateToolset
stateHandle
- The handles to duplicateIOException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.