addIfService(dispatcher); addIfService(containerAllocator); dispatcher.register(ContainerAllocator.EventType.class, containerAllocator); addIfService(historyService); addIfService(cpHist); addIfService(dispatcher); addIfService(committerEventHandler); addIfService(taskAttemptListener); addIfService(speculator); addIfService(containerAllocator); dispatcher.register(ContainerAllocator.EventType.class, containerAllocator); addIfService(containerLauncher); dispatcher.register(ContainerLauncher.EventType.class, containerLauncher); addIfService(historyService);
addIfService(dispatcher); taskAttemptFinishingMonitor = createTaskAttemptFinishingMonitor(dispatcher.getEventHandler()); addIfService(taskAttemptFinishingMonitor); context = new RunningAppContext(conf, taskAttemptFinishingMonitor); addIfService(containerAllocator); dispatcher.register(ContainerAllocator.EventType.class, containerAllocator); addIfService(historyService); addIfService(cpHist); addIfService(committerEventHandler); addIfService(taskAttemptListener); addIfService(speculator); addIfService(containerAllocator); dispatcher.register(ContainerAllocator.EventType.class, containerAllocator); addIfService(containerLauncher); dispatcher.register(ContainerLauncher.EventType.class, containerLauncher); addIfService(historyService);
addIfService(dispatcher); taskAttemptFinishingMonitor = createTaskAttemptFinishingMonitor(dispatcher.getEventHandler()); addIfService(taskAttemptFinishingMonitor); context = new RunningAppContext(conf, taskAttemptFinishingMonitor); addIfService(containerAllocator); dispatcher.register(ContainerAllocator.EventType.class, containerAllocator); addIfService(historyService); addIfService(cpHist); addIfService(committerEventHandler); addIfService(taskAttemptListener); addIfService(speculator); addIfService(containerAllocator); dispatcher.register(ContainerAllocator.EventType.class, containerAllocator); addIfService(containerLauncher); dispatcher.register(ContainerLauncher.EventType.class, containerLauncher); addIfService(historyService);