org.apache.hadoop.yarn.server.applicationhistoryservice
Interface ApplicationHistoryWriter

All Known Subinterfaces:
ApplicationHistoryStore
All Known Implementing Classes:
FileSystemApplicationHistoryStore, MemoryApplicationHistoryStore, NullApplicationHistoryStore

@InterfaceAudience.Private
@InterfaceStability.Unstable
public interface ApplicationHistoryWriter

It is the interface of writing the application history, exposing the methods of writing ApplicationStartData, ApplicationFinishData ApplicationAttemptStartData, ApplicationAttemptFinishData, ContainerStartData and ContainerFinishData.


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.
 

Method Detail

applicationStarted

void applicationStarted(ApplicationStartData appStart)
                        throws IOException
This method writes the information of RMApp that is available when it starts.

Parameters:
appStart - the record of the information of RMApp that is available when it starts
Throws:
IOException

applicationFinished

void applicationFinished(ApplicationFinishData appFinish)
                         throws IOException
This method writes the information of RMApp that is available when it finishes.

Parameters:
appFinish - the record of the information of RMApp that is available when it finishes
Throws:
IOException

applicationAttemptStarted

void applicationAttemptStarted(ApplicationAttemptStartData appAttemptStart)
                               throws IOException
This method writes the information of RMAppAttempt that is available when it starts.

Parameters:
appAttemptStart - the record of the information of RMAppAttempt that is available when it starts
Throws:
IOException

applicationAttemptFinished

void applicationAttemptFinished(ApplicationAttemptFinishData appAttemptFinish)
                                throws IOException
This method writes the information of RMAppAttempt that is available when it finishes.

Parameters:
appAttemptFinish - the record of the information of RMAppAttempt that is available when it finishes
Throws:
IOException

containerStarted

void containerStarted(ContainerStartData containerStart)
                      throws IOException
This method writes the information of RMContainer that is available when it starts.

Parameters:
containerStart - the record of the information of RMContainer that is available when it starts
Throws:
IOException

containerFinished

void containerFinished(ContainerFinishData containerFinish)
                       throws IOException
This method writes the information of RMContainer that is available when it finishes.

Parameters:
containerFinish - the record of the information of RMContainer that is available when it finishes
Throws:
IOException


Copyright © 2014 Apache Software Foundation. All Rights Reserved.