use of org.apache.hadoop.mapreduce.jobhistory.JobInitedEvent 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