public class LocalSnapshotDirectoryProviderImpl extends Object implements LocalSnapshotDirectoryProvider
LocalSnapshotDirectoryProvider.| Constructor and Description |
|---|
LocalSnapshotDirectoryProviderImpl(File[] allocationBaseDirs,
org.apache.flink.api.common.JobID jobID,
JobVertexID jobVertexID,
int subtaskIndex) |
LocalSnapshotDirectoryProviderImpl(File allocationBaseDir,
org.apache.flink.api.common.JobID jobID,
JobVertexID jobVertexID,
int subtaskIndex) |
| Modifier and Type | Method and Description |
|---|---|
File |
allocationBaseDirectory(long checkpointId)
Returns the local state allocation base directory for given checkpoint id w.r.t. our rotation
over all available allocation base directories.
|
int |
allocationBaseDirsCount()
Returns the total number of allocation base directories.
|
File |
selectAllocationBaseDirectory(int idx)
Returns a specific allocation base directory.
|
File |
selectSubtaskBaseDirectory(int idx)
Returns a specific subtask base directory.
|
File |
subtaskBaseDirectory(long checkpointId)
Returns the local state directory for the owning subtask the given checkpoint id w.r.t. our
rotation over all available available allocation base directories.
|
File |
subtaskSpecificCheckpointDirectory(long checkpointId)
Returns the local state directory for the specific operator subtask and the given checkpoint
id w.r.t. our rotation over all available root dirs.
|
String |
toString() |
public LocalSnapshotDirectoryProviderImpl(File allocationBaseDir, @Nonnull org.apache.flink.api.common.JobID jobID, @Nonnull JobVertexID jobVertexID, @Nonnegative int subtaskIndex)
public LocalSnapshotDirectoryProviderImpl(@Nonnull File[] allocationBaseDirs, @Nonnull org.apache.flink.api.common.JobID jobID, @Nonnull JobVertexID jobVertexID, @Nonnegative int subtaskIndex)
public File allocationBaseDirectory(long checkpointId)
LocalSnapshotDirectoryProviderallocationBaseDirectory in interface LocalSnapshotDirectoryProviderpublic File subtaskBaseDirectory(long checkpointId)
LocalSnapshotDirectoryProviderLocalSnapshotDirectoryProvider.allocationBaseDirectory(long) for the same
checkpoint id.subtaskBaseDirectory in interface LocalSnapshotDirectoryProviderpublic File subtaskSpecificCheckpointDirectory(long checkpointId)
LocalSnapshotDirectoryProviderLocalSnapshotDirectoryProvider.subtaskBaseDirectory(long) for the same checkpoint id.subtaskSpecificCheckpointDirectory in interface LocalSnapshotDirectoryProviderpublic File selectAllocationBaseDirectory(int idx)
LocalSnapshotDirectoryProviderLocalSnapshotDirectoryProvider.allocationBaseDirsCount() (excl.).selectAllocationBaseDirectory in interface LocalSnapshotDirectoryProviderpublic File selectSubtaskBaseDirectory(int idx)
LocalSnapshotDirectoryProviderLocalSnapshotDirectoryProvider.allocationBaseDirsCount() (excl.). This directory is direct a child of LocalSnapshotDirectoryProvider.selectSubtaskBaseDirectory(int) given the same index.selectSubtaskBaseDirectory in interface LocalSnapshotDirectoryProviderpublic int allocationBaseDirsCount()
LocalSnapshotDirectoryProviderallocationBaseDirsCount in interface LocalSnapshotDirectoryProviderCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.