Class HistoryFileManager.HistoryFileInfo
java.lang.Object
org.apache.hadoop.mapreduce.v2.hs.HistoryFileManager.HistoryFileInfo
- Enclosing class:
- HistoryFileManager
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHistoryFileInfo(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) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddelete()org.apache.hadoop.fs.Pathorg.apache.hadoop.fs.PathReturn the history file.org.apache.hadoop.mapreduce.v2.api.records.JobIdgetJobId()org.apache.hadoop.mapreduce.v2.jobhistory.JobIndexInfobooleanorg.apache.hadoop.conf.Configurationorg.apache.hadoop.mapreduce.v2.app.job.JobloadJob()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.toString()void
-
Constructor Details
-
HistoryFileInfo
@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)
-
-
Method Details
-
isDeleted
public boolean isDeleted()- Returns:
- true if the files backed by this were deleted.
-
toString
-
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.- Returns:
- null if the underlying job history file was deleted, or
an
UnparsedJobobject representing a partially parsed job if the job tasks exceeds the configured maximum, or aCompletedJobrepresenting a fully parsed job. - Throws:
IOException- if there is an error trying to read the file if parsed.
-
getHistoryFile
public org.apache.hadoop.fs.Path getHistoryFile()Return the history file.- Returns:
- the history file.
-
delete
- Throws:
IOException
-
getJobIndexInfo
public org.apache.hadoop.mapreduce.v2.jobhistory.JobIndexInfo getJobIndexInfo() -
getJobId
public org.apache.hadoop.mapreduce.v2.api.records.JobId getJobId() -
getConfFile
public org.apache.hadoop.fs.Path getConfFile() -
loadConfFile
- Throws:
IOException
-
waitUntilMoved
public void waitUntilMoved()
-