public class FsJobArchivist extends Object
FileSystem and reading it back.| Modifier and Type | Method and Description |
|---|---|
static org.apache.flink.core.fs.Path |
archiveJob(org.apache.flink.core.fs.Path rootPath,
org.apache.flink.api.common.JobID jobId,
Collection<ArchivedJson> jsonToArchive)
Writes the given
AccessExecutionGraph to the FileSystem pointed to by JobManagerOptions.ARCHIVE_DIR. |
static Collection<ArchivedJson> |
getArchivedJsons(org.apache.flink.core.fs.Path file)
Reads the given archive file and returns a
Collection of contained ArchivedJson. |
public static org.apache.flink.core.fs.Path archiveJob(org.apache.flink.core.fs.Path rootPath,
org.apache.flink.api.common.JobID jobId,
Collection<ArchivedJson> jsonToArchive)
throws IOException
AccessExecutionGraph to the FileSystem pointed to by JobManagerOptions.ARCHIVE_DIR.rootPath - directory to which the archive should be written tojobId - job idjsonToArchive - collection of json-path pairs to that should be archivedIOExceptionpublic static Collection<ArchivedJson> getArchivedJsons(org.apache.flink.core.fs.Path file) throws IOException
Collection of contained ArchivedJson.file - archive to extractIOException - if the file can't be opened, read or doesn't contain valid jsonCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.