Class NullApplicationHistoryStore
java.lang.Object
org.apache.hadoop.service.AbstractService
org.apache.hadoop.yarn.server.applicationhistoryservice.NullApplicationHistoryStore
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hadoop.service.Service,ApplicationHistoryReader,ApplicationHistoryStore,ApplicationHistoryWriter
@Unstable
@Private
public class NullApplicationHistoryStore
extends org.apache.hadoop.service.AbstractService
implements ApplicationHistoryStore
Dummy implementation of
ApplicationHistoryStore. If this
implementation is used, no history data will be persisted.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hadoop.service.Service
org.apache.hadoop.service.Service.STATE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplicationAttemptFinished(ApplicationAttemptFinishData appAttemptFinish) This method writes the information ofRMAppAttemptthat is available when it finishes.voidapplicationAttemptStarted(ApplicationAttemptStartData appAttemptStart) This method writes the information ofRMAppAttemptthat is available when it starts.voidapplicationFinished(ApplicationFinishData appFinish) This method writes the information ofRMAppthat is available when it finishes.voidapplicationStarted(ApplicationStartData appStart) This method writes the information ofRMAppthat is available when it starts.voidcontainerFinished(ContainerFinishData containerFinish) This method writes the information ofRMContainerthat is available when it finishes.voidcontainerStarted(ContainerStartData containerStart) This method writes the information ofRMContainerthat is available when it starts.Map<org.apache.hadoop.yarn.api.records.ApplicationId,ApplicationHistoryData> This method returns all ApplicationApplicationHistoryDatasgetAMContainer(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId) This method returnsContainerHistoryDatafor specifiedApplicationAttemptId.getApplication(org.apache.hadoop.yarn.api.records.ApplicationId appId) This method returns ApplicationApplicationHistoryDatafor the specifiedApplicationId.getApplicationAttempt(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId) This method returnsApplicationAttemptHistoryDatafor specifiedApplicationId.Map<org.apache.hadoop.yarn.api.records.ApplicationAttemptId,ApplicationAttemptHistoryData> getApplicationAttempts(org.apache.hadoop.yarn.api.records.ApplicationId appId) Application can have multiple application attemptsApplicationAttemptHistoryData.getContainer(org.apache.hadoop.yarn.api.records.ContainerId containerId) This method returnsContainerHistoryDatafor specifiedContainerId.Map<org.apache.hadoop.yarn.api.records.ContainerId,ContainerHistoryData> getContainers(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId) 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, serviceStart, serviceStop, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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 Details
-
NullApplicationHistoryStore
public NullApplicationHistoryStore()
-
-
Method Details
-
applicationStarted
Description copied from interface:ApplicationHistoryWriterThis method writes the information ofRMAppthat is available when it starts.- Specified by:
applicationStartedin interfaceApplicationHistoryWriter- Parameters:
appStart- the record of the information ofRMAppthat is available when it starts- Throws:
IOException
-
applicationFinished
Description copied from interface:ApplicationHistoryWriterThis method writes the information ofRMAppthat is available when it finishes.- Specified by:
applicationFinishedin interfaceApplicationHistoryWriter- Parameters:
appFinish- the record of the information ofRMAppthat is available when it finishes- Throws:
IOException
-
applicationAttemptStarted
public void applicationAttemptStarted(ApplicationAttemptStartData appAttemptStart) throws IOException Description copied from interface:ApplicationHistoryWriterThis method writes the information ofRMAppAttemptthat is available when it starts.- Specified by:
applicationAttemptStartedin interfaceApplicationHistoryWriter- Parameters:
appAttemptStart- the record of the information ofRMAppAttemptthat is available when it starts- Throws:
IOException
-
applicationAttemptFinished
public void applicationAttemptFinished(ApplicationAttemptFinishData appAttemptFinish) throws IOException Description copied from interface:ApplicationHistoryWriterThis method writes the information ofRMAppAttemptthat is available when it finishes.- Specified by:
applicationAttemptFinishedin interfaceApplicationHistoryWriter- Parameters:
appAttemptFinish- the record of the information ofRMAppAttemptthat is available when it finishes- Throws:
IOException
-
containerStarted
Description copied from interface:ApplicationHistoryWriterThis method writes the information ofRMContainerthat is available when it starts.- Specified by:
containerStartedin interfaceApplicationHistoryWriter- Parameters:
containerStart- the record of the information ofRMContainerthat is available when it starts- Throws:
IOException
-
containerFinished
Description copied from interface:ApplicationHistoryWriterThis method writes the information ofRMContainerthat is available when it finishes.- Specified by:
containerFinishedin interfaceApplicationHistoryWriter- Parameters:
containerFinish- the record of the information ofRMContainerthat is available when it finishes- Throws:
IOException
-
getApplication
public ApplicationHistoryData getApplication(org.apache.hadoop.yarn.api.records.ApplicationId appId) throws IOException Description copied from interface:ApplicationHistoryReaderThis method returns ApplicationApplicationHistoryDatafor the specifiedApplicationId.- Specified by:
getApplicationin interfaceApplicationHistoryReader- Returns:
ApplicationHistoryDatafor the ApplicationId.- Throws:
IOException
-
getAllApplications
public Map<org.apache.hadoop.yarn.api.records.ApplicationId,ApplicationHistoryData> getAllApplications() throws IOExceptionDescription copied from interface:ApplicationHistoryReaderThis method returns all ApplicationApplicationHistoryDatas- Specified by:
getAllApplicationsin interfaceApplicationHistoryReader- Returns:
- map of
ApplicationIdtoApplicationHistoryDatas. - Throws:
IOException
-
getApplicationAttempts
public Map<org.apache.hadoop.yarn.api.records.ApplicationAttemptId,ApplicationAttemptHistoryData> getApplicationAttempts(org.apache.hadoop.yarn.api.records.ApplicationId appId) throws IOException Description copied from interface:ApplicationHistoryReaderApplication can have multiple application attemptsApplicationAttemptHistoryData. This method returns the allApplicationAttemptHistoryDatas for the Application.- Specified by:
getApplicationAttemptsin interfaceApplicationHistoryReader- Returns:
- all
ApplicationAttemptHistoryDatas for the Application. - Throws:
IOException
-
getApplicationAttempt
public ApplicationAttemptHistoryData getApplicationAttempt(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId) throws IOException Description copied from interface:ApplicationHistoryReaderThis method returnsApplicationAttemptHistoryDatafor specifiedApplicationId.- Specified by:
getApplicationAttemptin interfaceApplicationHistoryReader- Parameters:
appAttemptId-ApplicationAttemptId- Returns:
ApplicationAttemptHistoryDatafor ApplicationAttemptId- Throws:
IOException
-
getContainer
public ContainerHistoryData getContainer(org.apache.hadoop.yarn.api.records.ContainerId containerId) throws IOException Description copied from interface:ApplicationHistoryReaderThis method returnsContainerHistoryDatafor specifiedContainerId.- Specified by:
getContainerin interfaceApplicationHistoryReader- Parameters:
containerId-ContainerId- Returns:
ContainerHistoryDatafor ContainerId- Throws:
IOException
-
getAMContainer
public ContainerHistoryData getAMContainer(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId) throws IOException Description copied from interface:ApplicationHistoryReaderThis method returnsContainerHistoryDatafor specifiedApplicationAttemptId.- Specified by:
getAMContainerin interfaceApplicationHistoryReader- Parameters:
appAttemptId-ApplicationAttemptId- Returns:
ContainerHistoryDatafor ApplicationAttemptId- Throws:
IOException
-
getContainers
public Map<org.apache.hadoop.yarn.api.records.ContainerId,ContainerHistoryData> getContainers(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId) throws IOException Description copied from interface:ApplicationHistoryReader- Specified by:
getContainersin interfaceApplicationHistoryReader- Parameters:
appAttemptId-ApplicationAttemptId- Returns:
- Map
ContainerIdtoContainerHistoryDatafor ApplicationAttemptId - Throws:
IOException
-