@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, waitForServiceToStopprotected 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.AbstractServiceExceptionpublic void serviceStop()
throws Exception
serviceStop in class org.apache.hadoop.service.AbstractServiceExceptionprotected 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
IOExceptionprotected List<org.apache.hadoop.fs.FileStatus> findTimestampedDirectories() throws IOException
IOExceptionpublic Collection<HistoryFileManager.HistoryFileInfo> getAllFileInfo() throws IOException
IOExceptionpublic HistoryFileManager.HistoryFileInfo getFileInfo(org.apache.hadoop.mapreduce.v2.api.records.JobId jobId) throws IOException
IOExceptionprotected 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.AccessControlExceptionFileNotFoundExceptionorg.apache.hadoop.fs.UnsupportedFileSystemExceptionIOExceptionprotected void setMaxHistoryAge(long newValue)
Copyright © 2014 Apache Software Foundation. All Rights Reserved.