Class RMApplicationHistoryWriter
java.lang.Object
org.apache.hadoop.service.AbstractService
org.apache.hadoop.service.CompositeService
org.apache.hadoop.yarn.server.resourcemanager.ahs.RMApplicationHistoryWriter
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hadoop.service.Service
@Private
@Unstable
public class RMApplicationHistoryWriter
extends org.apache.hadoop.service.CompositeService
ResourceManager uses this class to write the information of
RMApp, RMAppAttempt and RMContainer. These APIs are
non-blocking, and just schedule a writing history event. An self-contained
dispatcher vector will handle the event in separate threads, and extract the
required fields that are going to be persisted. Then, the extracted
information will be persisted via the implementation of
ApplicationHistoryStore.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classNested classes/interfaces inherited from class org.apache.hadoop.service.CompositeService
org.apache.hadoop.service.CompositeService.CompositeServiceShutdownHookNested classes/interfaces inherited from interface org.apache.hadoop.service.Service
org.apache.hadoop.service.Service.STATE -
Field Summary
FieldsFields inherited from class org.apache.hadoop.service.CompositeService
STOP_ONLY_STARTED_SERVICES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplicationAttemptFinished(RMAppAttempt appAttempt, RMAppAttemptState finalState) voidapplicationAttemptStarted(RMAppAttempt appAttempt) voidapplicationFinished(RMApp app, RMAppState finalState) voidapplicationStarted(RMApp app) voidcontainerFinished(RMContainer container) voidcontainerStarted(RMContainer container) protected org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryStorecreateApplicationHistoryStore(org.apache.hadoop.conf.Configuration conf) protected org.apache.hadoop.yarn.event.DispatchercreateDispatcher(org.apache.hadoop.conf.Configuration conf) protected voidprotected voidserviceInit(org.apache.hadoop.conf.Configuration conf) Methods inherited from class org.apache.hadoop.service.CompositeService
addIfService, addService, getServices, removeService, serviceStart, serviceStopMethods 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
-
Field Details
-
LOG
public static final org.slf4j.Logger LOG
-
-
Constructor Details
-
RMApplicationHistoryWriter
public RMApplicationHistoryWriter()
-
-
Method Details
-
serviceInit
- Overrides:
serviceInitin classorg.apache.hadoop.service.CompositeService- Throws:
Exception
-
createDispatcher
protected org.apache.hadoop.yarn.event.Dispatcher createDispatcher(org.apache.hadoop.conf.Configuration conf) -
createApplicationHistoryStore
protected org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryStore createApplicationHistoryStore(org.apache.hadoop.conf.Configuration conf) -
handleWritingApplicationHistoryEvent
-
applicationStarted
-
applicationFinished
-
applicationAttemptStarted
-
applicationAttemptFinished
-
containerStarted
-
containerFinished
-