private static Map<String, MetricsReporter> loadMetricsReporters( ApplicationDescriptorImpl<? extends ApplicationDescriptor> appDesc, String containerId, Config config) { Map<String, MetricsReporter> reporters = new HashMap<>(); appDesc.getMetricsReporterFactories().forEach((name, factory) -> reporters.put(name, factory.getMetricsReporter(name, containerId, config))); return reporters; }
private static Map<String, MetricsReporter> loadMetricsReporters( ApplicationDescriptorImpl<? extends ApplicationDescriptor> appDesc, String containerId, Config config) { Map<String, MetricsReporter> reporters = new HashMap<>(); appDesc.getMetricsReporterFactories().forEach((name, factory) -> reporters.put(name, factory.getMetricsReporter(name, containerId, config))); return reporters; }
private static Map<String, MetricsReporter> loadMetricsReporters( ApplicationDescriptorImpl<? extends ApplicationDescriptor> appDesc, String containerId, Config config) { Map<String, MetricsReporter> reporters = new HashMap<>(); appDesc.getMetricsReporterFactories().forEach((name, factory) -> reporters.put(name, factory.getMetricsReporter(name, containerId, config))); return reporters; }
private static Map<String, MetricsReporter> loadMetricsReporters( ApplicationDescriptorImpl<? extends ApplicationDescriptor> appDesc, String containerId, Config config) { Map<String, MetricsReporter> reporters = new HashMap<>(); appDesc.getMetricsReporterFactories().forEach((name, factory) -> reporters.put(name, factory.getMetricsReporter(name, containerId, config))); return reporters; }
private static Map<String, MetricsReporter> loadMetricsReporters( ApplicationDescriptorImpl<? extends ApplicationDescriptor> appDesc, String containerId, Config config) { Map<String, MetricsReporter> reporters = new HashMap<>(); appDesc.getMetricsReporterFactories().forEach((name, factory) -> reporters.put(name, factory.getMetricsReporter(name, containerId, config))); return reporters; }
@VisibleForTesting StreamProcessor createStreamProcessor(Config config, ApplicationDescriptorImpl<? extends ApplicationDescriptor> appDesc, StreamProcessor.StreamProcessorLifecycleListenerFactory listenerFactory) { TaskFactory taskFactory = TaskFactoryUtil.getTaskFactory(appDesc); Map<String, MetricsReporter> reporters = new HashMap<>(); // TODO: the null processorId has to be fixed after SAMZA-1835 appDesc.getMetricsReporterFactories().forEach((name, factory) -> reporters.put(name, factory.getMetricsReporter(name, null, config))); return new StreamProcessor(config, reporters, taskFactory, appDesc.getApplicationContainerContextFactory(), appDesc.getApplicationTaskContextFactory(), listenerFactory, null); }
@VisibleForTesting StreamProcessor createStreamProcessor(Config config, ApplicationDescriptorImpl<? extends ApplicationDescriptor> appDesc, StreamProcessor.StreamProcessorLifecycleListenerFactory listenerFactory) { TaskFactory taskFactory = TaskFactoryUtil.getTaskFactory(appDesc); Map<String, MetricsReporter> reporters = new HashMap<>(); // TODO: the null processorId has to be fixed after SAMZA-1835 appDesc.getMetricsReporterFactories().forEach((name, factory) -> reporters.put(name, factory.getMetricsReporter(name, null, config))); return new StreamProcessor(config, reporters, taskFactory, appDesc.getApplicationContainerContextFactory(), appDesc.getApplicationTaskContextFactory(), listenerFactory, null); }
@VisibleForTesting StreamProcessor createStreamProcessor(Config config, ApplicationDescriptorImpl<? extends ApplicationDescriptor> appDesc, StreamProcessor.StreamProcessorLifecycleListenerFactory listenerFactory) { TaskFactory taskFactory = TaskFactoryUtil.getTaskFactory(appDesc); Map<String, MetricsReporter> reporters = new HashMap<>(); // TODO: the null processorId has to be fixed after SAMZA-1835 appDesc.getMetricsReporterFactories().forEach((name, factory) -> reporters.put(name, factory.getMetricsReporter(name, null, config))); return new StreamProcessor(config, reporters, taskFactory, appDesc.getApplicationContainerContextFactory(), appDesc.getApplicationTaskContextFactory(), listenerFactory, null); }
@VisibleForTesting StreamProcessor createStreamProcessor(Config config, ApplicationDescriptorImpl<? extends ApplicationDescriptor> appDesc, StreamProcessor.StreamProcessorLifecycleListenerFactory listenerFactory) { TaskFactory taskFactory = TaskFactoryUtil.getTaskFactory(appDesc); Map<String, MetricsReporter> reporters = new HashMap<>(); // TODO: the null processorId has to be fixed after SAMZA-1835 appDesc.getMetricsReporterFactories().forEach((name, factory) -> reporters.put(name, factory.getMetricsReporter(name, null, config))); return new StreamProcessor(config, reporters, taskFactory, appDesc.getApplicationContainerContextFactory(), appDesc.getApplicationTaskContextFactory(), listenerFactory, null); }
@VisibleForTesting StreamProcessor createStreamProcessor(Config config, ApplicationDescriptorImpl<? extends ApplicationDescriptor> appDesc, StreamProcessor.StreamProcessorLifecycleListenerFactory listenerFactory, Optional<ExternalContext> externalContextOptional) { TaskFactory taskFactory = TaskFactoryUtil.getTaskFactory(appDesc); Map<String, MetricsReporter> reporters = new HashMap<>(); String processorId = createProcessorId(new ApplicationConfig(config)); appDesc.getMetricsReporterFactories().forEach((name, factory) -> reporters.put(name, factory.getMetricsReporter(name, processorId, config))); return new StreamProcessor(processorId, config, reporters, taskFactory, appDesc.getApplicationContainerContextFactory(), appDesc.getApplicationTaskContextFactory(), externalContextOptional, listenerFactory, null); }