Package org.apache.flink.runtime.state
Class TaskExecutorLocalStateStoresManager
java.lang.Object
org.apache.flink.runtime.state.TaskExecutorLocalStateStoresManager
This class holds the all
TaskLocalStateStoreImpl objects for a task executor (manager).-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTaskExecutorLocalStateStoresManager(boolean localRecoveryEnabled, boolean localBackupEnabled, org.apache.flink.util.Reference<File[]> localStateRootDirectories, Executor discardExecutor) -
Method Summary
Modifier and TypeMethodDescriptionlocalStateStoreForSubtask(org.apache.flink.api.common.JobID jobId, AllocationID allocationID, JobVertexID jobVertexID, int subtaskIndex, org.apache.flink.configuration.Configuration clusterConfiguration, org.apache.flink.configuration.Configuration jobConfiguration) voidreleaseLocalStateForAllocationId(AllocationID allocationID) voidretainLocalStateForAllocations(Set<AllocationID> allocationsToRetain) Retains the given set of allocations.voidshutdown()
-
Field Details
-
ALLOCATION_DIR_PREFIX
- See Also:
-
-
Constructor Details
-
TaskExecutorLocalStateStoresManager
public TaskExecutorLocalStateStoresManager(boolean localRecoveryEnabled, boolean localBackupEnabled, @Nonnull org.apache.flink.util.Reference<File[]> localStateRootDirectories, @Nonnull Executor discardExecutor) throws IOException - Throws:
IOException
-
-
Method Details
-
localStateStoreForSubtask
@Nonnull public TaskLocalStateStore localStateStoreForSubtask(@Nonnull org.apache.flink.api.common.JobID jobId, @Nonnull AllocationID allocationID, @Nonnull JobVertexID jobVertexID, @Nonnegative int subtaskIndex, org.apache.flink.configuration.Configuration clusterConfiguration, org.apache.flink.configuration.Configuration jobConfiguration) -
releaseLocalStateForAllocationId
-
retainLocalStateForAllocations
Retains the given set of allocations. All other allocations will be released.- Parameters:
allocationsToRetain-
-
shutdown
public void shutdown()
-