public class TaskExecutorLocalStateStoresManager extends Object
TaskLocalStateStoreImpl
objects for a task executor (manager).Modifier and Type | Field and Description |
---|---|
static String |
ALLOCATION_DIR_PREFIX |
Constructor and Description |
---|
TaskExecutorLocalStateStoresManager(boolean localRecoveryEnabled,
Reference<File[]> localStateRootDirectories,
Executor discardExecutor) |
Modifier and Type | Method and Description |
---|---|
TaskLocalStateStore |
localStateStoreForSubtask(JobID jobId,
AllocationID allocationID,
JobVertexID jobVertexID,
int subtaskIndex) |
void |
releaseLocalStateForAllocationId(AllocationID allocationID) |
void |
retainLocalStateForAllocations(Set<AllocationID> allocationsToRetain)
Retains the given set of allocations.
|
void |
shutdown() |
public static final String ALLOCATION_DIR_PREFIX
public TaskExecutorLocalStateStoresManager(boolean localRecoveryEnabled, @Nonnull Reference<File[]> localStateRootDirectories, @Nonnull Executor discardExecutor) throws IOException
IOException
@Nonnull public TaskLocalStateStore localStateStoreForSubtask(@Nonnull JobID jobId, @Nonnull AllocationID allocationID, @Nonnull JobVertexID jobVertexID, @Nonnegative int subtaskIndex)
public void releaseLocalStateForAllocationId(@Nonnull AllocationID allocationID)
public void retainLocalStateForAllocations(Set<AllocationID> allocationsToRetain)
allocationsToRetain
- public void shutdown()
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.