org.apache.tez.dag.history
Class HistoryEventHandler

java.lang.Object
  extended by org.apache.hadoop.service.AbstractService
      extended by org.apache.hadoop.service.CompositeService
          extended by org.apache.tez.dag.history.HistoryEventHandler
All Implemented Interfaces:
Closeable, org.apache.hadoop.service.Service

public class HistoryEventHandler
extends org.apache.hadoop.service.CompositeService


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.service.CompositeService
org.apache.hadoop.service.CompositeService.CompositeServiceShutdownHook
 
Nested classes/interfaces inherited from interface org.apache.hadoop.service.Service
org.apache.hadoop.service.Service.STATE
 
Field Summary
 
Fields inherited from class org.apache.hadoop.service.CompositeService
STOP_ONLY_STARTED_SERVICES
 
Constructor Summary
HistoryEventHandler(AppContext context)
           
 
Method Summary
 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()
           
 
Methods inherited from class org.apache.hadoop.service.CompositeService
addIfService, addService, getServices, removeService
 
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, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HistoryEventHandler

public HistoryEventHandler(AppContext context)
Method Detail

serviceInit

public void serviceInit(org.apache.hadoop.conf.Configuration conf)
                 throws Exception
Overrides:
serviceInit in class org.apache.hadoop.service.CompositeService
Throws:
Exception

serviceStart

public void serviceStart()
                  throws Exception
Overrides:
serviceStart in class org.apache.hadoop.service.CompositeService
Throws:
Exception

serviceStop

public void serviceStop()
                 throws Exception
Overrides:
serviceStop in class org.apache.hadoop.service.CompositeService
Throws:
Exception

handleCriticalEvent

public void handleCriticalEvent(DAGHistoryEvent event)
                         throws IOException
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

Parameters:
event - History event
Throws:
IOException

handle

public void handle(DAGHistoryEvent event)

hasRecoveryFailed

public boolean hasRecoveryFailed()


Copyright © 2014 Apache Software Foundation. All rights reserved.