public final class NoOpTaskLocalStateStoreImpl extends Object implements OwnedTaskLocalStateStore
TaskLocalStateStore with no functionality and is used when local
recovery is disabled.| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
CompletableFuture<Void> |
dispose()
Disposes the task local state store.
|
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.
|
@Nonnull public LocalRecoveryConfig getLocalRecoveryConfig()
TaskLocalStateStoreLocalRecoveryConfig for this task local state store.getLocalRecoveryConfig 在接口中 TaskLocalStateStorepublic CompletableFuture<Void> dispose()
OwnedTaskLocalStateStoredispose 在接口中 OwnedTaskLocalStateStorepublic void storeLocalState(long checkpointId,
@Nullable
TaskStateSnapshot localState)
TaskLocalStateStorestoreLocalState 在接口中 TaskLocalStateStorecheckpointId - id for the checkpoint that created the local state that will be stored.localState - the local state to store.@Nullable public TaskStateSnapshot retrieveLocalState(long checkpointID)
TaskLocalStateStoreretrieveLocalState 在接口中 TaskLocalStateStorecheckpointID - the checkpoint id by which we search for local state.public void confirmCheckpoint(long confirmedCheckpointId)
TaskLocalStateStoreconfirmCheckpoint 在接口中 TaskLocalStateStorepublic void abortCheckpoint(long abortedCheckpointId)
TaskLocalStateStoreabortCheckpoint 在接口中 TaskLocalStateStorepublic void pruneMatchingCheckpoints(java.util.function.LongPredicate matcher)
TaskLocalStateStorepruneMatchingCheckpoints 在接口中 TaskLocalStateStorematcher - the predicate that selects the checkpoints for pruning.Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.