public class ChangelogTaskLocalStateStore extends TaskLocalStateStoreImpl
TaskLocalStateStore.allocationID, discardExecutor, disposed, jobID, jobVertexID, localRecoveryConfig, lock, storedTaskStateByCheckpointID, subtaskIndex, TASK_STATE_SNAPSHOT_FILENAME| 构造器和说明 |
|---|
ChangelogTaskLocalStateStore(org.apache.flink.api.common.JobID jobID,
AllocationID allocationID,
JobVertexID jobVertexID,
int subtaskIndex,
LocalRecoveryConfig localRecoveryConfig,
Executor discardExecutor) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 TaskLocalStateStorestoreLocalState 在类中 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)
public void pruneCheckpoints(java.util.function.LongPredicate pruningChecker, boolean breakOnceCheckerFalse)
TaskLocalStateStoreImplTaskLocalStateStoreImpl.lock.public CompletableFuture<Void> dispose()
TaskLocalStateStoreImpldispose 在接口中 OwnedTaskLocalStateStoredispose 在类中 TaskLocalStateStoreImplpublic String toString()
toString 在类中 TaskLocalStateStoreImplCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.