org.apache.hadoop.mapreduce.v2.app.recover
Class RecoveryService

java.lang.Object
  extended by org.apache.hadoop.yarn.service.AbstractService
      extended by org.apache.hadoop.yarn.service.CompositeService
          extended by org.apache.hadoop.mapreduce.v2.app.recover.RecoveryService
All Implemented Interfaces:
Recovery, org.apache.hadoop.yarn.service.Service

public class RecoveryService
extends org.apache.hadoop.yarn.service.CompositeService
implements Recovery


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.yarn.service.CompositeService
org.apache.hadoop.yarn.service.CompositeService.CompositeServiceShutdownHook
 
Nested classes/interfaces inherited from interface org.apache.hadoop.yarn.service.Service
org.apache.hadoop.yarn.service.Service.STATE
 
Constructor Summary
RecoveryService(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId, org.apache.hadoop.yarn.Clock clock, org.apache.hadoop.mapreduce.OutputCommitter committer)
           
 
Method Summary
protected  org.apache.hadoop.yarn.event.Dispatcher createRecoveryDispatcher()
           
protected  org.apache.hadoop.yarn.event.Dispatcher createRecoveryDispatcher(boolean exitOnException)
           
 List<org.apache.hadoop.mapreduce.v2.api.records.AMInfo> getAMInfos()
           
 org.apache.hadoop.yarn.Clock getClock()
           
 Map<org.apache.hadoop.mapreduce.v2.api.records.TaskId,org.apache.hadoop.mapreduce.jobhistory.JobHistoryParser.TaskInfo> getCompletedTasks()
           
 org.apache.hadoop.yarn.event.Dispatcher getDispatcher()
           
 void init(org.apache.hadoop.conf.Configuration conf)
           
 
Methods inherited from class org.apache.hadoop.yarn.service.CompositeService
addService, getServices, removeService, start, stop
 
Methods inherited from class org.apache.hadoop.yarn.service.AbstractService
getConfig, getName, getServiceState, getStartTime, register, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecoveryService

public RecoveryService(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId,
                       org.apache.hadoop.yarn.Clock clock,
                       org.apache.hadoop.mapreduce.OutputCommitter committer)
Method Detail

init

public void init(org.apache.hadoop.conf.Configuration conf)
Specified by:
init in interface org.apache.hadoop.yarn.service.Service
Overrides:
init in class org.apache.hadoop.yarn.service.CompositeService

getDispatcher

public org.apache.hadoop.yarn.event.Dispatcher getDispatcher()
Specified by:
getDispatcher in interface Recovery

getClock

public org.apache.hadoop.yarn.Clock getClock()
Specified by:
getClock in interface Recovery

getCompletedTasks

public Map<org.apache.hadoop.mapreduce.v2.api.records.TaskId,org.apache.hadoop.mapreduce.jobhistory.JobHistoryParser.TaskInfo> getCompletedTasks()
Specified by:
getCompletedTasks in interface Recovery

getAMInfos

public List<org.apache.hadoop.mapreduce.v2.api.records.AMInfo> getAMInfos()
Specified by:
getAMInfos in interface Recovery

createRecoveryDispatcher

protected org.apache.hadoop.yarn.event.Dispatcher createRecoveryDispatcher()

createRecoveryDispatcher

protected org.apache.hadoop.yarn.event.Dispatcher createRecoveryDispatcher(boolean exitOnException)


Copyright © 2012 Apache Software Foundation. All Rights Reserved.