org.apache.hadoop.mapreduce.v2.hs
Class HistoryFileManager.HistoryFileInfo
java.lang.Object
org.apache.hadoop.mapreduce.v2.hs.HistoryFileManager.HistoryFileInfo
- Enclosing class:
- HistoryFileManager
public class HistoryFileManager.HistoryFileInfo
- extends Object
|
Method Summary |
org.apache.hadoop.fs.Path |
getConfFile()
|
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. |
String |
toString()
|
isDeleted
public boolean isDeleted()
- Returns:
- true if the files backed by this were deleted.
toString
public String toString()
- Overrides:
toString in class Object
loadJob
public org.apache.hadoop.mapreduce.v2.app.job.Job loadJob()
throws IOException
- Parse a job from the JobHistoryFile, if the underlying file is not going
to be deleted.
- Returns:
- the Job or null if the underlying file was deleted.
- Throws:
IOException - if there is an error trying to read the file.
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
public org.apache.hadoop.conf.Configuration loadConfFile()
throws IOException
- Throws:
IOException
Copyright © 2013 Apache Software Foundation. All Rights Reserved.