public class FileSystemJobResultStore extends AbstractThreadsafeJobResultStore
JobResultStore
which persists job result data to an underlying
distributed filesystem.Modifier and Type | Method and Description |
---|---|
static String |
createDefaultJobResultStorePath(String baseDir,
String clusterId) |
void |
createDirtyResultInternal(JobResultEntry jobResultEntry) |
static FileSystemJobResultStore |
fromConfiguration(Configuration config) |
Set<JobResult> |
getDirtyResultsInternal() |
boolean |
hasCleanJobResultEntryInternal(JobID jobId) |
boolean |
hasDirtyJobResultEntryInternal(JobID jobId) |
static boolean |
hasValidDirtyJobResultStoreEntryExtension(String filename) |
static boolean |
hasValidJobResultStoreEntryExtension(String filename) |
void |
markResultAsCleanInternal(JobID jobId) |
createDirtyResult, getDirtyResults, hasCleanJobResultEntry, hasDirtyJobResultEntry, hasJobResultEntry, markResultAsClean
@VisibleForTesting public static boolean hasValidDirtyJobResultStoreEntryExtension(String filename)
@VisibleForTesting public static boolean hasValidJobResultStoreEntryExtension(String filename)
public static FileSystemJobResultStore fromConfiguration(Configuration config) throws IOException
IOException
public static String createDefaultJobResultStorePath(String baseDir, String clusterId)
public void createDirtyResultInternal(JobResultEntry jobResultEntry) throws IOException
createDirtyResultInternal
in class AbstractThreadsafeJobResultStore
IOException
public void markResultAsCleanInternal(JobID jobId) throws IOException, NoSuchElementException
markResultAsCleanInternal
in class AbstractThreadsafeJobResultStore
IOException
NoSuchElementException
public boolean hasDirtyJobResultEntryInternal(JobID jobId) throws IOException
hasDirtyJobResultEntryInternal
in class AbstractThreadsafeJobResultStore
IOException
public boolean hasCleanJobResultEntryInternal(JobID jobId) throws IOException
hasCleanJobResultEntryInternal
in class AbstractThreadsafeJobResultStore
IOException
public Set<JobResult> getDirtyResultsInternal() throws IOException
getDirtyResultsInternal
in class AbstractThreadsafeJobResultStore
IOException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.