public class JobHistoryCopyService
extends org.apache.hadoop.service.CompositeService
implements org.apache.hadoop.mapreduce.jobhistory.HistoryEventHandler
| Constructor and Description | 
|---|
| JobHistoryCopyService(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId,
                     org.apache.hadoop.yarn.event.EventHandler<org.apache.hadoop.yarn.event.Event> handler) | 
| Modifier and Type | Method and Description | 
|---|---|
| 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) | 
| protected void | serviceInit(org.apache.hadoop.conf.Configuration conf) | 
| protected void | serviceStart() | 
addIfService, addService, getServices, removeService, serviceStopclose, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStoppublic JobHistoryCopyService(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId,
                             org.apache.hadoop.yarn.event.EventHandler<org.apache.hadoop.yarn.event.Event> handler)
protected void serviceInit(org.apache.hadoop.conf.Configuration conf)
                    throws Exception
serviceInit in class org.apache.hadoop.service.CompositeServiceExceptionpublic void handleEvent(org.apache.hadoop.mapreduce.jobhistory.HistoryEvent event)
                 throws IOException
handleEvent in interface org.apache.hadoop.mapreduce.jobhistory.HistoryEventHandlerIOExceptionprotected void serviceStart()
                     throws Exception
serviceStart in class org.apache.hadoop.service.CompositeServiceExceptionpublic static org.apache.hadoop.fs.FSDataInputStream getPreviousJobHistoryFileStream(org.apache.hadoop.conf.Configuration conf,
                                                                                     org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId)
                                                                              throws IOException
IOExceptionCopyright © 2008–2023 Apache Software Foundation. All rights reserved.