use of org.apache.hadoop.mapreduce.jobhistory.JobHistoryEventHandler in project hadoop by apache.
the class MRAppMasterTestLaunchTime method createJobHistoryHandler.
@Override
protected EventHandler<JobHistoryEvent> createJobHistoryHandler(AppContext context) {
return new JobHistoryEventHandler(context, getStartCount()) {
@Override
public void handle(JobHistoryEvent event) {
if (event.getHistoryEvent().getEventType() == EventType.JOB_INITED) {
JobInitedEvent jie = (JobInitedEvent) event.getHistoryEvent();
jobLaunchTime.set(jie.getLaunchTime());
}
super.handle(event);
}
};
}
Aggregations