public class FsJobArchivist extends Object
FileSystemand reading it back.
|Modifier and Type||Method and Description|
Writes the given
Reads the given archive file and returns a
public static Path archiveJob(Path rootPath, JobID jobId, Collection<ArchivedJson> jsonToArchive) throws IOException
FileSystempointed to by
rootPath- directory to which the archive should be written to
jobId- job id
jsonToArchive- collection of json-path pairs to that should be archived
public static Collection<ArchivedJson> getArchivedJsons(Path file) throws IOException
file- archive to extract
IOException- if the file can't be opened, read or doesn't contain valid json
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.