public class ChangelogTaskLocalStateStore extends TaskLocalStateStoreImpl
TaskLocalStateStore.allocationID, discardExecutor, disposed, jobID, jobVertexID, localRecoveryConfig, lock, storedTaskStateByCheckpointID, subtaskIndex, TASK_STATE_SNAPSHOT_FILENAME| Constructor and Description |
|---|
ChangelogTaskLocalStateStore(org.apache.flink.api.common.JobID jobID,
AllocationID allocationID,
JobVertexID jobVertexID,
int subtaskIndex,
LocalRecoveryConfig localRecoveryConfig,
Executor discardExecutor) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
dispose()
Disposes the state of all local snapshots managed by this object.
|
protected File |
getCheckpointDirectory(long checkpointId) |
static org.apache.flink.core.fs.Path |
getLocalTaskOwnedDirectory(LocalRecoveryDirectoryProvider provider,
org.apache.flink.api.common.JobID jobID) |
void |
pruneCheckpoints(java.util.function.LongPredicate pruningChecker,
boolean breakOnceCheckerFalse)
Pruning the useless checkpoints, it should be called only when holding the
TaskLocalStateStoreImpl.lock. |
void |
storeLocalState(long checkpointId,
TaskStateSnapshot localState)
Stores the local state for the given checkpoint id.
|
String |
toString() |
abortCheckpoint, confirmCheckpoint, deleteDirectory, getLocalRecoveryConfig, getLocalRecoveryDirectoryProvider, pruneMatchingCheckpoints, retrieveLocalStatepublic ChangelogTaskLocalStateStore(@Nonnull org.apache.flink.api.common.JobID jobID, @Nonnull AllocationID allocationID, @Nonnull JobVertexID jobVertexID, @Nonnegative int subtaskIndex, @Nonnull LocalRecoveryConfig localRecoveryConfig, @Nonnull Executor discardExecutor)
public static org.apache.flink.core.fs.Path getLocalTaskOwnedDirectory(LocalRecoveryDirectoryProvider provider, org.apache.flink.api.common.JobID jobID)
public void storeLocalState(long checkpointId,
@Nullable
TaskStateSnapshot localState)
TaskLocalStateStorestoreLocalState in interface TaskLocalStateStorestoreLocalState in class TaskLocalStateStoreImplcheckpointId - id for the checkpoint that created the local state that will be stored.localState - the local state to store.protected File getCheckpointDirectory(long checkpointId)
getCheckpointDirectory in class TaskLocalStateStoreImplpublic void pruneCheckpoints(java.util.function.LongPredicate pruningChecker, boolean breakOnceCheckerFalse)
TaskLocalStateStoreImplTaskLocalStateStoreImpl.lock.pruneCheckpoints in class TaskLocalStateStoreImplpublic CompletableFuture<Void> dispose()
TaskLocalStateStoreImpldispose in interface OwnedTaskLocalStateStoredispose in class TaskLocalStateStoreImplpublic String toString()
toString in class TaskLocalStateStoreImplCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.