public class LocalRecoveryDirectoryProviderImpl extends Object implements LocalRecoveryDirectoryProvider
LocalRecoveryDirectoryProvider
.Constructor and Description |
---|
LocalRecoveryDirectoryProviderImpl(File[] allocationBaseDirs,
JobID jobID,
JobVertexID jobVertexID,
int subtaskIndex) |
LocalRecoveryDirectoryProviderImpl(File allocationBaseDir,
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.
|
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.
|
File |
subtaskSpecificCheckpointDirectory(long checkpointId)
Returns the local state directory for the specific operator subtask and the given checkpoint
id w.r.t.
|
String |
toString() |
public LocalRecoveryDirectoryProviderImpl(File allocationBaseDir, @Nonnull JobID jobID, @Nonnull JobVertexID jobVertexID, @Nonnegative int subtaskIndex)
public LocalRecoveryDirectoryProviderImpl(@Nonnull File[] allocationBaseDirs, @Nonnull JobID jobID, @Nonnull JobVertexID jobVertexID, @Nonnegative int subtaskIndex)
public File allocationBaseDirectory(long checkpointId)
LocalRecoveryDirectoryProvider
allocationBaseDirectory
in interface LocalRecoveryDirectoryProvider
public File subtaskBaseDirectory(long checkpointId)
LocalRecoveryDirectoryProvider
LocalRecoveryDirectoryProvider.allocationBaseDirectory(long)
for the same
checkpoint id.subtaskBaseDirectory
in interface LocalRecoveryDirectoryProvider
public File subtaskSpecificCheckpointDirectory(long checkpointId)
LocalRecoveryDirectoryProvider
LocalRecoveryDirectoryProvider.subtaskBaseDirectory(long)
for the same checkpoint id.subtaskSpecificCheckpointDirectory
in interface LocalRecoveryDirectoryProvider
public File selectAllocationBaseDirectory(int idx)
LocalRecoveryDirectoryProvider
LocalRecoveryDirectoryProvider.allocationBaseDirsCount()
(excl.).selectAllocationBaseDirectory
in interface LocalRecoveryDirectoryProvider
public File selectSubtaskBaseDirectory(int idx)
LocalRecoveryDirectoryProvider
LocalRecoveryDirectoryProvider.allocationBaseDirsCount()
(excl.). This directory is direct a child of LocalRecoveryDirectoryProvider.selectSubtaskBaseDirectory(int)
given the same index.selectSubtaskBaseDirectory
in interface LocalRecoveryDirectoryProvider
public int allocationBaseDirsCount()
LocalRecoveryDirectoryProvider
allocationBaseDirsCount
in interface LocalRecoveryDirectoryProvider
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.