org.apache.tez.dag.history.recovery
Class RecoveryService

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

public class RecoveryService
extends org.apache.hadoop.service.AbstractService


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.service.Service
org.apache.hadoop.service.Service.STATE
 
Field Summary
static String RECOVERY_FATAL_OCCURRED_DIR
           
 
Constructor Summary
RecoveryService(AppContext appContext)
           
 
Method Summary
 void handle(DAGHistoryEvent event)
           
 boolean hasRecoveryFailed()
           
 void serviceInit(org.apache.hadoop.conf.Configuration conf)
           
 void serviceStart()
           
 void serviceStop()
           
 
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
 

Field Detail

RECOVERY_FATAL_OCCURRED_DIR

public static final String RECOVERY_FATAL_OCCURRED_DIR
See Also:
Constant Field Values
Constructor Detail

RecoveryService

public RecoveryService(AppContext appContext)
Method Detail

serviceInit

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

serviceStart

public void serviceStart()
Overrides:
serviceStart in class org.apache.hadoop.service.AbstractService

serviceStop

public void serviceStop()
Overrides:
serviceStop in class org.apache.hadoop.service.AbstractService

handle

public void handle(DAGHistoryEvent event)
            throws IOException
Throws:
IOException

hasRecoveryFailed

public boolean hasRecoveryFailed()


Copyright © 2014 Apache Software Foundation. All rights reserved.