@Inject LocalMetricsCollectionService(CConfiguration cConf, MetricStore metricStore) { this.cConf = cConf; this.metricStore = metricStore; metricStore.setMetricsContext(this.getContext(METRICS_PROCESSOR_CONTEXT)); }
@Inject LocalMetricsCollectionService(CConfiguration cConf, MetricStore metricStore) { super(TimeUnit.SECONDS.toMillis(cConf.getInt(Constants.Metrics.METRICS_MINIMUM_RESOLUTION_SECONDS))); this.cConf = cConf; this.metricStore = metricStore; metricStore.setMetricsContext(this.getContext(METRICS_PROCESSOR_CONTEXT)); }
this.metricStore.setMetricsContext(metricsContext); this.maxDelayMillis = cConf.getLong(Constants.Metrics.PROCESSOR_MAX_DELAY_MS); this.queueSize = cConf.getInt(Constants.Metrics.QUEUE_SIZE);
this.metricStore.setMetricsContext(metricsContext); this.maxDelayMillis = cConf.getLong(Constants.Metrics.PROCESSOR_MAX_DELAY_MS); this.queueSize = cConf.getInt(Constants.Metrics.QUEUE_SIZE);