org.apache.hadoop.mapreduce.jobhistory
Class JobHistoryCopyService

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.jobhistory.JobHistoryCopyService
All Implemented Interfaces:
org.apache.hadoop.mapreduce.jobhistory.HistoryEventHandler, org.apache.hadoop.yarn.service.Service

public class JobHistoryCopyService
extends org.apache.hadoop.yarn.service.CompositeService
implements org.apache.hadoop.mapreduce.jobhistory.HistoryEventHandler

Reads in history events from the JobHistoryFile and sends them out again to be recorded.


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
JobHistoryCopyService(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId, org.apache.hadoop.yarn.event.EventHandler handler)
           
 
Method Summary
static org.apache.hadoop.fs.FSDataInputStream getPreviousJobHistoryFileStream(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId)
           
 void handleEvent(org.apache.hadoop.mapreduce.jobhistory.HistoryEvent event)
           
 void init(org.apache.hadoop.conf.Configuration conf)
           
 void start()
           
 
Methods inherited from class org.apache.hadoop.yarn.service.CompositeService
addService, getServices, removeService, 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

JobHistoryCopyService

public JobHistoryCopyService(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId,
                             org.apache.hadoop.yarn.event.EventHandler handler)
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

handleEvent

public void handleEvent(org.apache.hadoop.mapreduce.jobhistory.HistoryEvent event)
                 throws IOException
Specified by:
handleEvent in interface org.apache.hadoop.mapreduce.jobhistory.HistoryEventHandler
Throws:
IOException

start

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

getPreviousJobHistoryFileStream

public static org.apache.hadoop.fs.FSDataInputStream getPreviousJobHistoryFileStream(org.apache.hadoop.conf.Configuration conf,
                                                                                     org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId)
                                                                              throws IOException
Throws:
IOException


Copyright © 2013 Apache Software Foundation. All Rights Reserved.