|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.service.AbstractService
org.apache.hadoop.service.CompositeService
org.apache.hadoop.mapreduce.jobhistory.JobHistoryCopyService
public class JobHistoryCopyService
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.service.CompositeService |
|---|
org.apache.hadoop.service.CompositeService.CompositeServiceShutdownHook |
| Nested classes/interfaces inherited from interface org.apache.hadoop.service.Service |
|---|
org.apache.hadoop.service.Service.STATE |
| Field Summary |
|---|
| Fields inherited from class org.apache.hadoop.service.CompositeService |
|---|
STOP_ONLY_STARTED_SERVICES |
| 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)
|
protected void |
serviceInit(org.apache.hadoop.conf.Configuration conf)
|
protected void |
serviceStart()
|
| Methods inherited from class org.apache.hadoop.service.CompositeService |
|---|
addIfService, addService, getServices, removeService, serviceStop |
| Methods inherited from class org.apache.hadoop.service.AbstractService |
|---|
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JobHistoryCopyService(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId,
org.apache.hadoop.yarn.event.EventHandler handler)
| Method Detail |
|---|
protected void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws Exception
serviceInit in class org.apache.hadoop.service.CompositeServiceException
public void handleEvent(org.apache.hadoop.mapreduce.jobhistory.HistoryEvent event)
throws IOException
handleEvent in interface org.apache.hadoop.mapreduce.jobhistory.HistoryEventHandlerIOException
protected void serviceStart()
throws Exception
serviceStart in class org.apache.hadoop.service.CompositeServiceException
public static org.apache.hadoop.fs.FSDataInputStream getPreviousJobHistoryFileStream(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||