private MetricsCollectionService getMetricsService(CConfiguration cConf, MetricsCollectionService metricsService, Map<String, String> runtimeArgs) { boolean emitMetrics = SystemArguments.isProgramMetricsEnabled(runtimeArgs, cConf.getBoolean(Constants.Metrics.PROGRAM_METRICS_ENABLED)); return emitMetrics ? metricsService : new NoOpMetricsCollectionService(); }
private MetricsCollectionService getMetricsService(CConfiguration cConf, MetricsCollectionService metricsService, Map<String, String> runtimeArgs) { boolean emitMetrics = SystemArguments.isProgramMetricsEnabled(runtimeArgs, cConf.getBoolean(Constants.Metrics.PROGRAM_METRICS_ENABLED)); return emitMetrics ? metricsService : new NoOpMetricsCollectionService(); }