@InterfaceAudience.Public
@InterfaceStability.Unstable
public class HistoryFileManager
extends org.apache.hadoop.service.AbstractService
Modifier and Type | Class and Description |
---|---|
class |
HistoryFileManager.HistoryFileInfo |
Modifier and Type | Field and Description |
---|---|
protected org.apache.hadoop.mapreduce.v2.hs.HistoryFileManager.JobListCache |
jobListCache |
protected ThreadPoolExecutor |
moveToDoneExecutor |
Constructor and Description |
---|
HistoryFileManager() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.hadoop.mapreduce.v2.hs.HistoryFileManager.JobListCache |
createJobListCache() |
protected boolean |
deleteDir(org.apache.hadoop.fs.FileStatus serialDir) |
protected List<org.apache.hadoop.fs.FileStatus> |
findTimestampedDirectories()
Finds all history directories with a timestamp component by scanning the
filesystem.
|
Collection<HistoryFileManager.HistoryFileInfo> |
getAllFileInfo() |
HistoryFileManager.HistoryFileInfo |
getFileInfo(org.apache.hadoop.mapreduce.v2.api.records.JobId jobId) |
protected List<org.apache.hadoop.fs.FileStatus> |
scanDirectoryForHistoryFiles(org.apache.hadoop.fs.Path path,
org.apache.hadoop.fs.FileContext fc) |
protected void |
serviceInit(org.apache.hadoop.conf.Configuration conf) |
void |
serviceStop() |
protected void |
setMaxHistoryAge(long newValue) |
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, serviceStart, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop
protected org.apache.hadoop.mapreduce.v2.hs.HistoryFileManager.JobListCache jobListCache
protected ThreadPoolExecutor moveToDoneExecutor
protected void serviceInit(org.apache.hadoop.conf.Configuration conf) throws Exception
serviceInit
in class org.apache.hadoop.service.AbstractService
Exception
public void serviceStop() throws Exception
serviceStop
in class org.apache.hadoop.service.AbstractService
Exception
protected org.apache.hadoop.mapreduce.v2.hs.HistoryFileManager.JobListCache createJobListCache()
protected List<org.apache.hadoop.fs.FileStatus> scanDirectoryForHistoryFiles(org.apache.hadoop.fs.Path path, org.apache.hadoop.fs.FileContext fc) throws IOException
IOException
protected List<org.apache.hadoop.fs.FileStatus> findTimestampedDirectories() throws IOException
IOException
public Collection<HistoryFileManager.HistoryFileInfo> getAllFileInfo() throws IOException
IOException
public HistoryFileManager.HistoryFileInfo getFileInfo(org.apache.hadoop.mapreduce.v2.api.records.JobId jobId) throws IOException
IOException
protected boolean deleteDir(org.apache.hadoop.fs.FileStatus serialDir) throws org.apache.hadoop.security.AccessControlException, FileNotFoundException, org.apache.hadoop.fs.UnsupportedFileSystemException, IOException
org.apache.hadoop.security.AccessControlException
FileNotFoundException
org.apache.hadoop.fs.UnsupportedFileSystemException
IOException
protected void setMaxHistoryAge(long newValue)
Copyright © 2014 Apache Software Foundation. All Rights Reserved.