|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.service.AbstractService
org.apache.hadoop.yarn.server.applicationhistoryservice.FileSystemApplicationHistoryStore
@InterfaceAudience.Public @InterfaceStability.Unstable public class FileSystemApplicationHistoryStore
File system implementation of ApplicationHistoryStore. In this
implementation, one application will have just one file in the file system,
which contains all the history data of one application, and its attempts and
containers. applicationStarted(ApplicationStartData) is supposed to
be invoked first when writing any history data of one application and it will
open a file, while applicationFinished(ApplicationFinishData) is
supposed to be last writing operation and will close the file.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.hadoop.service.Service |
|---|
org.apache.hadoop.service.Service.STATE |
| Constructor Summary | |
|---|---|
FileSystemApplicationHistoryStore()
|
|
| Method Summary | |
|---|---|
void |
applicationAttemptFinished(ApplicationAttemptFinishData appAttemptFinish)
This method writes the information of RMAppAttempt that is
available when it finishes. |
void |
applicationAttemptStarted(ApplicationAttemptStartData appAttemptStart)
This method writes the information of RMAppAttempt that is
available when it starts. |
void |
applicationFinished(ApplicationFinishData appFinish)
This method writes the information of RMApp that is available
when it finishes. |
void |
applicationStarted(ApplicationStartData appStart)
This method writes the information of RMApp that is available
when it starts. |
void |
containerFinished(ContainerFinishData containerFinish)
This method writes the information of RMContainer that is
available when it finishes. |
void |
containerStarted(ContainerStartData containerStart)
This method writes the information of RMContainer that is
available when it starts. |
Map<org.apache.hadoop.yarn.api.records.ApplicationId,ApplicationHistoryData> |
getAllApplications()
This method returns all Application ApplicationHistoryDatas |
ContainerHistoryData |
getAMContainer(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId)
This method returns ContainerHistoryData for specified
ApplicationAttemptId. |
ApplicationHistoryData |
getApplication(org.apache.hadoop.yarn.api.records.ApplicationId appId)
This method returns Application ApplicationHistoryData for the
specified ApplicationId. |
ApplicationAttemptHistoryData |
getApplicationAttempt(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId)
This method returns ApplicationAttemptHistoryData for specified
ApplicationId. |
Map<org.apache.hadoop.yarn.api.records.ApplicationAttemptId,ApplicationAttemptHistoryData> |
getApplicationAttempts(org.apache.hadoop.yarn.api.records.ApplicationId appId)
Application can have multiple application attempts ApplicationAttemptHistoryData. |
ContainerHistoryData |
getContainer(org.apache.hadoop.yarn.api.records.ContainerId containerId)
This method returns ContainerHistoryData for specified
ContainerId. |
Map<org.apache.hadoop.yarn.api.records.ContainerId,ContainerHistoryData> |
getContainers(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId)
This method returns Map ContainerId to ContainerHistoryData
for specified ApplicationAttemptId. |
protected org.apache.hadoop.fs.FileSystem |
getFileSystem(org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration conf)
|
void |
serviceStart()
|
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, serviceInit, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.hadoop.service.Service |
|---|
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, registerServiceListener, start, stop, unregisterServiceListener, waitForServiceToStop |
| Constructor Detail |
|---|
public FileSystemApplicationHistoryStore()
| Method Detail |
|---|
protected org.apache.hadoop.fs.FileSystem getFileSystem(org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration conf)
throws Exception
Exception
public void serviceStart()
throws Exception
serviceStart in class org.apache.hadoop.service.AbstractServiceException
public void serviceStop()
throws Exception
serviceStop in class org.apache.hadoop.service.AbstractServiceException
public ApplicationHistoryData getApplication(org.apache.hadoop.yarn.api.records.ApplicationId appId)
throws IOException
ApplicationHistoryReaderApplicationHistoryData for the
specified ApplicationId.
getApplication in interface ApplicationHistoryReaderApplicationHistoryData for the ApplicationId.
IOException
public Map<org.apache.hadoop.yarn.api.records.ApplicationId,ApplicationHistoryData> getAllApplications()
throws IOException
ApplicationHistoryReaderApplicationHistoryDatas
getAllApplications in interface ApplicationHistoryReaderApplicationId to ApplicationHistoryDatas.
IOException
public Map<org.apache.hadoop.yarn.api.records.ApplicationAttemptId,ApplicationAttemptHistoryData> getApplicationAttempts(org.apache.hadoop.yarn.api.records.ApplicationId appId)
throws IOException
ApplicationHistoryReaderApplicationAttemptHistoryData. This method returns the all
ApplicationAttemptHistoryDatas for the Application.
getApplicationAttempts in interface ApplicationHistoryReaderApplicationAttemptHistoryDatas for the Application.
IOException
public ApplicationAttemptHistoryData getApplicationAttempt(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId)
throws IOException
ApplicationHistoryReaderApplicationAttemptHistoryData for specified
ApplicationId.
getApplicationAttempt in interface ApplicationHistoryReaderappAttemptId - ApplicationAttemptId
ApplicationAttemptHistoryData for ApplicationAttemptId
IOException
public ContainerHistoryData getContainer(org.apache.hadoop.yarn.api.records.ContainerId containerId)
throws IOException
ApplicationHistoryReaderContainerHistoryData for specified
ContainerId.
getContainer in interface ApplicationHistoryReadercontainerId - ContainerId
ContainerHistoryData for ContainerId
IOException
public ContainerHistoryData getAMContainer(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId)
throws IOException
ApplicationHistoryReaderContainerHistoryData for specified
ApplicationAttemptId.
getAMContainer in interface ApplicationHistoryReaderappAttemptId - ApplicationAttemptId
ContainerHistoryData for ApplicationAttemptId
IOException
public Map<org.apache.hadoop.yarn.api.records.ContainerId,ContainerHistoryData> getContainers(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId)
throws IOException
ApplicationHistoryReaderContainerId to ContainerHistoryData
for specified ApplicationAttemptId.
getContainers in interface ApplicationHistoryReaderappAttemptId - ApplicationAttemptId
ContainerId to ContainerHistoryData for
ApplicationAttemptId
IOException
public void applicationStarted(ApplicationStartData appStart)
throws IOException
ApplicationHistoryWriterRMApp that is available
when it starts.
applicationStarted in interface ApplicationHistoryWriterappStart - the record of the information of RMApp that is
available when it starts
IOException
public void applicationFinished(ApplicationFinishData appFinish)
throws IOException
ApplicationHistoryWriterRMApp that is available
when it finishes.
applicationFinished in interface ApplicationHistoryWriterappFinish - the record of the information of RMApp that is
available when it finishes
IOException
public void applicationAttemptStarted(ApplicationAttemptStartData appAttemptStart)
throws IOException
ApplicationHistoryWriterRMAppAttempt that is
available when it starts.
applicationAttemptStarted in interface ApplicationHistoryWriterappAttemptStart - the record of the information of RMAppAttempt that is
available when it starts
IOException
public void applicationAttemptFinished(ApplicationAttemptFinishData appAttemptFinish)
throws IOException
ApplicationHistoryWriterRMAppAttempt that is
available when it finishes.
applicationAttemptFinished in interface ApplicationHistoryWriterappAttemptFinish - the record of the information of RMAppAttempt that is
available when it finishes
IOException
public void containerStarted(ContainerStartData containerStart)
throws IOException
ApplicationHistoryWriterRMContainer that is
available when it starts.
containerStarted in interface ApplicationHistoryWritercontainerStart - the record of the information of RMContainer that is
available when it starts
IOException
public void containerFinished(ContainerFinishData containerFinish)
throws IOException
ApplicationHistoryWriterRMContainer that is
available when it finishes.
containerFinished in interface ApplicationHistoryWritercontainerFinish - the record of the information of RMContainer that is
available when it finishes
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||