public class ChangelogTaskLocalStateStore extends TaskLocalStateStoreImpl
TaskLocalStateStore
.allocationID, discardExecutor, disposed, jobID, jobVertexID, localRecoveryConfig, lock, storedTaskStateByCheckpointID, subtaskIndex, TASK_STATE_SNAPSHOT_FILENAME
Constructor and Description |
---|
ChangelogTaskLocalStateStore(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 Path |
getLocalTaskOwnedDirectory(LocalRecoveryDirectoryProvider provider,
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, retrieveLocalState
public ChangelogTaskLocalStateStore(@Nonnull JobID jobID, @Nonnull AllocationID allocationID, @Nonnull JobVertexID jobVertexID, @Nonnegative int subtaskIndex, @Nonnull LocalRecoveryConfig localRecoveryConfig, @Nonnull Executor discardExecutor)
public static Path getLocalTaskOwnedDirectory(LocalRecoveryDirectoryProvider provider, JobID jobID)
public void storeLocalState(long checkpointId, @Nullable TaskStateSnapshot localState)
TaskLocalStateStore
storeLocalState
in interface TaskLocalStateStore
storeLocalState
in class TaskLocalStateStoreImpl
checkpointId
- 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 TaskLocalStateStoreImpl
public void pruneCheckpoints(java.util.function.LongPredicate pruningChecker, boolean breakOnceCheckerFalse)
TaskLocalStateStoreImpl
TaskLocalStateStoreImpl.lock
.pruneCheckpoints
in class TaskLocalStateStoreImpl
public CompletableFuture<Void> dispose()
TaskLocalStateStoreImpl
dispose
in interface OwnedTaskLocalStateStore
dispose
in class TaskLocalStateStoreImpl
public String toString()
toString
in class TaskLocalStateStoreImpl
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.