public class HistoryEventHandler
extends org.apache.hadoop.service.CompositeService
| Constructor and Description |
|---|
HistoryEventHandler(AppContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
handle(DAGHistoryEvent event) |
void |
handleCriticalEvent(DAGHistoryEvent event)
Used by events that are critical for recovery
DAG Submission/finished and any commit related activites are critical events
In short, any events that are instances of SummaryEvent
|
boolean |
hasRecoveryFailed() |
void |
serviceInit(org.apache.hadoop.conf.Configuration conf) |
void |
serviceStart() |
void |
serviceStop() |
addIfService, addService, getServices, removeServiceclose, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStoppublic HistoryEventHandler(AppContext context)
public void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws Exception
serviceInit in class org.apache.hadoop.service.CompositeServiceExceptionpublic void serviceStart()
throws Exception
serviceStart in class org.apache.hadoop.service.CompositeServiceExceptionpublic void serviceStop()
throws Exception
serviceStop in class org.apache.hadoop.service.CompositeServiceExceptionpublic void handleCriticalEvent(DAGHistoryEvent event) throws IOException
event - History eventIOExceptionpublic void handle(DAGHistoryEvent event)
public boolean hasRecoveryFailed()
Copyright © 2019 Apache Software Foundation. All rights reserved.