public class RecoveryService
extends org.apache.hadoop.service.AbstractService
| Modifier and Type | Class and Description |
|---|---|
static class |
RecoveryService.RecoveryStream |
| Modifier and Type | Field and Description |
|---|---|
protected AppContext |
appContext |
Thread |
eventHandlingThread |
Map<org.apache.tez.dag.records.TezDAGID,RecoveryService.RecoveryStream> |
outputStreamMap |
static String |
RECOVERY_FATAL_OCCURRED_DIR |
org.apache.hadoop.fs.FSDataOutputStream |
summaryStream |
static String |
TEZ_TEST_RECOVERY_DRAIN_EVENTS_WHEN_STOPPED
whether to handle remaining event in the eventqueue when AM is stopped
|
static boolean |
TEZ_TEST_RECOVERY_DRAIN_EVENTS_WHEN_STOPPED_DEFAULT
by default handle remaining event when AM is stopped.
|
| Constructor and Description |
|---|
RecoveryService(AppContext appContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
await() |
void |
handle(DAGHistoryEvent event) |
protected void |
handleRecoveryEvent(DAGHistoryEvent event) |
protected void |
handleSummaryEvent(org.apache.tez.dag.records.TezDAGID dagID,
HistoryEventType eventType,
SummaryEvent summaryEvent) |
boolean |
hasRecoveryFailed() |
void |
serviceInit(org.apache.hadoop.conf.Configuration conf) |
void |
serviceStart() |
void |
serviceStop() |
void |
setStopped(boolean stopped) |
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStopprotected final AppContext appContext
public static final String RECOVERY_FATAL_OCCURRED_DIR
public static final String TEZ_TEST_RECOVERY_DRAIN_EVENTS_WHEN_STOPPED
public static final boolean TEZ_TEST_RECOVERY_DRAIN_EVENTS_WHEN_STOPPED_DEFAULT
public Thread eventHandlingThread
public Map<org.apache.tez.dag.records.TezDAGID,RecoveryService.RecoveryStream> outputStreamMap
public org.apache.hadoop.fs.FSDataOutputStream summaryStream
public RecoveryService(AppContext appContext)
public void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws Exception
serviceInit in class org.apache.hadoop.service.AbstractServiceExceptionpublic void serviceStart()
serviceStart in class org.apache.hadoop.service.AbstractServicepublic void serviceStop()
throws Exception
serviceStop in class org.apache.hadoop.service.AbstractServiceExceptionpublic void handle(DAGHistoryEvent event) throws IOException
IOExceptionprotected void handleSummaryEvent(org.apache.tez.dag.records.TezDAGID dagID,
HistoryEventType eventType,
SummaryEvent summaryEvent)
throws IOException
IOExceptionprotected void handleRecoveryEvent(DAGHistoryEvent event) throws IOException
IOExceptionpublic boolean hasRecoveryFailed()
public void await()
public void setStopped(boolean stopped)
Copyright © 2020 Apache Software Foundation. All rights reserved.