java.io.Closeable, java.lang.AutoCloseable, org.apache.hadoop.mapreduce.jobhistory.HistoryEventHandler, org.apache.hadoop.service.Servicepublic class JobHistoryCopyService
extends org.apache.hadoop.service.CompositeService
implements org.apache.hadoop.mapreduce.jobhistory.HistoryEventHandler
| Constructor | 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 | 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 java.lang.Exception
serviceInit in class org.apache.hadoop.service.CompositeServicejava.lang.Exceptionpublic void handleEvent(org.apache.hadoop.mapreduce.jobhistory.HistoryEvent event)
throws java.io.IOException
handleEvent in interface org.apache.hadoop.mapreduce.jobhistory.HistoryEventHandlerjava.io.IOExceptionprotected void serviceStart()
throws java.lang.Exception
serviceStart in class org.apache.hadoop.service.CompositeServicejava.lang.Exceptionpublic static org.apache.hadoop.fs.FSDataInputStream getPreviousJobHistoryFileStream(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId)
throws java.io.IOException
java.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.