Class FileSystemJobResultStore
- java.lang.Object
-
- org.apache.flink.runtime.highavailability.AbstractThreadsafeJobResultStore
-
- org.apache.flink.runtime.highavailability.FileSystemJobResultStore
-
- All Implemented Interfaces:
JobResultStore
public class FileSystemJobResultStore extends AbstractThreadsafeJobResultStore
An implementation of theJobResultStore
which persists job result data to an underlying distributed filesystem.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
createDefaultJobResultStorePath(String baseDir, String clusterId)
void
createDirtyResultInternal(JobResultEntry jobResultEntry)
static FileSystemJobResultStore
fromConfiguration(org.apache.flink.configuration.Configuration config, Executor ioExecutor)
Set<JobResult>
getDirtyResultsInternal()
boolean
hasCleanJobResultEntryInternal(org.apache.flink.api.common.JobID jobId)
boolean
hasDirtyJobResultEntryInternal(org.apache.flink.api.common.JobID jobId)
static boolean
hasValidDirtyJobResultStoreEntryExtension(String filename)
static boolean
hasValidJobResultStoreEntryExtension(String filename)
void
markResultAsCleanInternal(org.apache.flink.api.common.JobID jobId)
-
Methods inherited from class org.apache.flink.runtime.highavailability.AbstractThreadsafeJobResultStore
createDirtyResultAsync, getDirtyResults, hasCleanJobResultEntryAsync, hasDirtyJobResultEntryAsync, hasJobResultEntryAsync, markResultAsCleanAsync
-
-
-
-
Method Detail
-
hasValidDirtyJobResultStoreEntryExtension
@VisibleForTesting public static boolean hasValidDirtyJobResultStoreEntryExtension(String filename)
-
hasValidJobResultStoreEntryExtension
@VisibleForTesting public static boolean hasValidJobResultStoreEntryExtension(String filename)
-
fromConfiguration
public static FileSystemJobResultStore fromConfiguration(org.apache.flink.configuration.Configuration config, Executor ioExecutor) throws IOException
- Throws:
IOException
-
createDefaultJobResultStorePath
public static String createDefaultJobResultStorePath(String baseDir, String clusterId)
-
createDirtyResultInternal
public void createDirtyResultInternal(JobResultEntry jobResultEntry) throws IOException
- Specified by:
createDirtyResultInternal
in classAbstractThreadsafeJobResultStore
- Throws:
IOException
-
markResultAsCleanInternal
public void markResultAsCleanInternal(org.apache.flink.api.common.JobID jobId) throws IOException, NoSuchElementException
- Specified by:
markResultAsCleanInternal
in classAbstractThreadsafeJobResultStore
- Throws:
IOException
NoSuchElementException
-
hasDirtyJobResultEntryInternal
public boolean hasDirtyJobResultEntryInternal(org.apache.flink.api.common.JobID jobId) throws IOException
- Specified by:
hasDirtyJobResultEntryInternal
in classAbstractThreadsafeJobResultStore
- Throws:
IOException
-
hasCleanJobResultEntryInternal
public boolean hasCleanJobResultEntryInternal(org.apache.flink.api.common.JobID jobId) throws IOException
- Specified by:
hasCleanJobResultEntryInternal
in classAbstractThreadsafeJobResultStore
- Throws:
IOException
-
getDirtyResultsInternal
public Set<JobResult> getDirtyResultsInternal() throws IOException
- Specified by:
getDirtyResultsInternal
in classAbstractThreadsafeJobResultStore
- Throws:
IOException
-
-