public class JobHistoryCopyService extends CompositeService implements org.apache.hadoop.mapreduce.jobhistory.HistoryEventHandler
CompositeService.CompositeServiceShutdownHookService.STATESTOP_ONLY_STARTED_SERVICES| Constructor and Description |
|---|
JobHistoryCopyService(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId,
org.apache.hadoop.yarn.event.EventHandler handler) |
| Modifier and Type | Method and Description |
|---|---|
static FSDataInputStream |
getPreviousJobHistoryFileStream(Configuration conf,
org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId) |
void |
handleEvent(org.apache.hadoop.mapreduce.jobhistory.HistoryEvent event) |
protected void |
serviceInit(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 handler)
protected void serviceInit(Configuration conf) throws Exception
serviceInit in class 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 CompositeServiceExceptionpublic static FSDataInputStream getPreviousJobHistoryFileStream(Configuration conf, org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId) throws IOException
IOExceptionCopyright © 2018 CERN. All Rights Reserved.