PerNodeTimelineCollectorsAuxService extends AuxiliaryService { @VisibleForTesting boolean hasApplication(ApplicationId appId) { return collectorManager.containsTimelineCollector(appId); } PerNodeTimelineCollectorsAuxService(); @VisibleForTesting  PerNodeTimelineCollectorsAuxService(
      NodeTimelineCollectorManager collectorsManager); boolean addApplicationIfAbsent(ApplicationId appId, String user); boolean removeApplication(ApplicationId appId); @Override void initializeContainer(ContainerInitializationContext context); @Override void stopContainer(ContainerTerminationContext context); @Override void initializeApplication(ApplicationInitializationContext context); @Override void stopApplication(ApplicationTerminationContext context); @Override ByteBuffer getMetaData(); @VisibleForTesting static PerNodeTimelineCollectorsAuxService launchServer(String[] args, NodeTimelineCollectorManager collectorManager,
      Configuration conf); static void main(String[] args);  }
@Test public void testAddApplication() throws Exception { auxService = createCollectorAndAddApplication(); assertTrue(auxService.hasApplication(appAttemptId.getApplicationId())); auxService.close(); }