public class FsJobArchivist extends Object
FileSystem and reading it back.| Modifier and Type | Method and Description |
|---|---|
static Path |
archiveJob(Path rootPath,
AccessExecutionGraph graph)
Writes the given
AccessExecutionGraph to the FileSystem pointed to by
JobManagerOptions.ARCHIVE_DIR. |
static Collection<ArchivedJson> |
getArchivedJsons(Path file)
Reads the given archive file and returns a
Collection of contained ArchivedJson. |
public static Path archiveJob(Path rootPath, AccessExecutionGraph graph) throws IOException
AccessExecutionGraph to the FileSystem pointed to by
JobManagerOptions.ARCHIVE_DIR.rootPath - directory to which the archive should be written tograph - graph to archiveIOExceptionpublic static Collection<ArchivedJson> getArchivedJsons(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–2017 The Apache Software Foundation. All rights reserved.