public class HistoryFileManager.HistoryFileInfo
extends java.lang.Object
| Modifier | Constructor | 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 | 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.
|
java.lang.String |
toString() |
|
void |
waitUntilMoved() |
@VisibleForTesting
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 java.lang.String toString()
toString in class java.lang.Objectpublic org.apache.hadoop.mapreduce.v2.app.job.Job loadJob()
throws java.io.IOException
UnparsedJob object representing a partially parsed job
if the job tasks exceeds the configured maximum, or
a CompletedJob representing a fully parsed job.java.io.IOException - if there is an error trying to read the file if parsed.public org.apache.hadoop.fs.Path getHistoryFile()
protected void delete()
throws java.io.IOException
java.io.IOExceptionpublic 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 java.io.IOException
java.io.IOExceptionpublic void waitUntilMoved()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.