public class HistoryFileManager.HistoryFileInfo extends Object
Modifier | Constructor and Description |
---|---|
protected |
HistoryFileInfo(org.apache.hadoop.fs.Path historyFile,
org.apache.hadoop.fs.Path confFile,
org.apache.hadoop.fs.Path summaryFile,
org.apache.hadoop.mapreduce.v2.jobhistory.JobIndexInfo jobIndexInfo,
boolean isInDone) |
Modifier and Type | Method and Description |
---|---|
protected void |
delete() |
org.apache.hadoop.fs.Path |
getConfFile() |
org.apache.hadoop.fs.Path |
getHistoryFile()
Return the history file.
|
org.apache.hadoop.mapreduce.v2.api.records.JobId |
getJobId() |
org.apache.hadoop.mapreduce.v2.jobhistory.JobIndexInfo |
getJobIndexInfo() |
boolean |
isDeleted() |
org.apache.hadoop.conf.Configuration |
loadConfFile() |
org.apache.hadoop.mapreduce.v2.app.job.Job |
loadJob()
Parse a job from the JobHistoryFile, if the underlying file is not going
to be deleted and the number of tasks associated with the job is not
greater than maxTasksForLoadedJob.
|
String |
toString() |
void |
waitUntilMoved() |
protected HistoryFileInfo(org.apache.hadoop.fs.Path historyFile, org.apache.hadoop.fs.Path confFile, org.apache.hadoop.fs.Path summaryFile, org.apache.hadoop.mapreduce.v2.jobhistory.JobIndexInfo jobIndexInfo, boolean isInDone)
public boolean isDeleted()
public org.apache.hadoop.mapreduce.v2.app.job.Job loadJob() throws IOException
UnparsedJob
object representing a partially parsed job
if the job tasks exceeds the configured maximum, or
a CompletedJob
representing a fully parsed job.IOException
- if there is an error trying to read the file if parsed.public org.apache.hadoop.fs.Path getHistoryFile()
protected void delete() throws IOException
IOException
public org.apache.hadoop.mapreduce.v2.jobhistory.JobIndexInfo getJobIndexInfo()
public org.apache.hadoop.mapreduce.v2.api.records.JobId getJobId()
public org.apache.hadoop.fs.Path getConfFile()
public org.apache.hadoop.conf.Configuration loadConfFile() throws IOException
IOException
public void waitUntilMoved()
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.