@Internal public interface TaskLocalStateStore
Modifier and Type | Method and Description |
---|---|
void |
abortCheckpoint(long abortedCheckpointId)
Notifies that the checkpoint with the given id was confirmed as aborted.
|
void |
confirmCheckpoint(long confirmedCheckpointId)
Notifies that the checkpoint with the given id was confirmed as complete.
|
LocalRecoveryConfig |
getLocalRecoveryConfig()
Returns the
LocalRecoveryConfig for this task local state store. |
void |
pruneMatchingCheckpoints(java.util.function.LongPredicate matcher)
Remove all checkpoints from the store that match the given predicate.
|
TaskStateSnapshot |
retrieveLocalState(long checkpointID)
Returns the local state that is stored under the given checkpoint id or null if nothing was
stored under the id.
|
void |
storeLocalState(long checkpointId,
TaskStateSnapshot localState)
Stores the local state for the given checkpoint id.
|
void storeLocalState(@Nonnegative long checkpointId, @Nullable TaskStateSnapshot localState)
checkpointId
- id for the checkpoint that created the local state that will be stored.localState
- the local state to store.@Nullable TaskStateSnapshot retrieveLocalState(long checkpointID)
checkpointID
- the checkpoint id by which we search for local state.@Nonnull LocalRecoveryConfig getLocalRecoveryConfig()
LocalRecoveryConfig
for this task local state store.void confirmCheckpoint(long confirmedCheckpointId)
void abortCheckpoint(long abortedCheckpointId)
void pruneMatchingCheckpoints(java.util.function.LongPredicate matcher)
matcher
- the predicate that selects the checkpoints for pruning.Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.