org.apache.hadoop.yarn.server.applicationhistoryservice
Class ApplicationHistoryManagerImpl
java.lang.Object
org.apache.hadoop.service.AbstractService
org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryManagerImpl
- All Implemented Interfaces:
- Closeable, org.apache.hadoop.service.Service, org.apache.hadoop.yarn.server.api.ApplicationContext, ApplicationHistoryManager
public class ApplicationHistoryManagerImpl
- extends org.apache.hadoop.service.AbstractService
- implements ApplicationHistoryManager
| Nested classes/interfaces inherited from interface org.apache.hadoop.service.Service |
org.apache.hadoop.service.Service.STATE |
|
Method Summary |
protected ApplicationHistoryStore |
createApplicationHistoryStore(org.apache.hadoop.conf.Configuration conf)
|
Map<org.apache.hadoop.yarn.api.records.ApplicationId,org.apache.hadoop.yarn.api.records.ApplicationReport> |
getAllApplications()
|
org.apache.hadoop.yarn.api.records.ContainerReport |
getAMContainer(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId)
|
org.apache.hadoop.yarn.api.records.ApplicationReport |
getApplication(org.apache.hadoop.yarn.api.records.ApplicationId appId)
|
org.apache.hadoop.yarn.api.records.ApplicationAttemptReport |
getApplicationAttempt(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId)
|
Map<org.apache.hadoop.yarn.api.records.ApplicationAttemptId,org.apache.hadoop.yarn.api.records.ApplicationAttemptReport> |
getApplicationAttempts(org.apache.hadoop.yarn.api.records.ApplicationId appId)
|
org.apache.hadoop.yarn.api.records.ContainerReport |
getContainer(org.apache.hadoop.yarn.api.records.ContainerId containerId)
|
Map<org.apache.hadoop.yarn.api.records.ContainerId,org.apache.hadoop.yarn.api.records.ContainerReport> |
getContainers(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId)
|
ApplicationHistoryStore |
getHistoryStore()
|
protected void |
serviceInit(org.apache.hadoop.conf.Configuration conf)
|
protected void |
serviceStart()
|
protected void |
serviceStop()
|
| Methods inherited from class org.apache.hadoop.service.AbstractService |
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop |
ApplicationHistoryManagerImpl
public ApplicationHistoryManagerImpl()
serviceInit
protected void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws Exception
- Overrides:
serviceInit in class org.apache.hadoop.service.AbstractService
- Throws:
Exception
serviceStart
protected void serviceStart()
throws Exception
- Overrides:
serviceStart in class org.apache.hadoop.service.AbstractService
- Throws:
Exception
serviceStop
protected void serviceStop()
throws Exception
- Overrides:
serviceStop in class org.apache.hadoop.service.AbstractService
- Throws:
Exception
createApplicationHistoryStore
protected ApplicationHistoryStore createApplicationHistoryStore(org.apache.hadoop.conf.Configuration conf)
getAMContainer
public org.apache.hadoop.yarn.api.records.ContainerReport getAMContainer(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId)
throws IOException
- Specified by:
getAMContainer in interface org.apache.hadoop.yarn.server.api.ApplicationContext
- Throws:
IOException
getAllApplications
public Map<org.apache.hadoop.yarn.api.records.ApplicationId,org.apache.hadoop.yarn.api.records.ApplicationReport> getAllApplications()
throws IOException
- Specified by:
getAllApplications in interface org.apache.hadoop.yarn.server.api.ApplicationContext
- Throws:
IOException
getApplication
public org.apache.hadoop.yarn.api.records.ApplicationReport getApplication(org.apache.hadoop.yarn.api.records.ApplicationId appId)
throws IOException
- Specified by:
getApplication in interface org.apache.hadoop.yarn.server.api.ApplicationContext
- Throws:
IOException
getApplicationAttempt
public org.apache.hadoop.yarn.api.records.ApplicationAttemptReport getApplicationAttempt(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId)
throws IOException
- Specified by:
getApplicationAttempt in interface org.apache.hadoop.yarn.server.api.ApplicationContext
- Throws:
IOException
getApplicationAttempts
public Map<org.apache.hadoop.yarn.api.records.ApplicationAttemptId,org.apache.hadoop.yarn.api.records.ApplicationAttemptReport> getApplicationAttempts(org.apache.hadoop.yarn.api.records.ApplicationId appId)
throws IOException
- Specified by:
getApplicationAttempts in interface org.apache.hadoop.yarn.server.api.ApplicationContext
- Throws:
IOException
getContainer
public org.apache.hadoop.yarn.api.records.ContainerReport getContainer(org.apache.hadoop.yarn.api.records.ContainerId containerId)
throws IOException
- Specified by:
getContainer in interface org.apache.hadoop.yarn.server.api.ApplicationContext
- Throws:
IOException
getContainers
public Map<org.apache.hadoop.yarn.api.records.ContainerId,org.apache.hadoop.yarn.api.records.ContainerReport> getContainers(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId)
throws IOException
- Specified by:
getContainers in interface org.apache.hadoop.yarn.server.api.ApplicationContext
- Throws:
IOException
getHistoryStore
@InterfaceAudience.Private
public ApplicationHistoryStore getHistoryStore()
Copyright © 2014 Apache Software Foundation. All Rights Reserved.