56017a98fa61fdfae1c8dadd90a378ffdb3fea72
Files Diff
- Added: 1
- Removed: 0
- Renamed: 0
- Modified: 5
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 2 | ||
Rename Method private createGauge(counter Counter, name String, identifier String, labelNames List<String>, labelValues List<String>) : Collector renamed to public get() : double in class org.apache.flink.metrics.prometheus.PrometheusReporter.gaugeFrom | From | To | |
Rename Method private createGauge(meter Meter, name String, identifier String, labelNames List<String>, labelValues List<String>) : Collector renamed to public get() : double in class org.apache.flink.metrics.prometheus.PrometheusReporter.gaugeFrom | From | To | |
Change Return Type | 2 | ||
Change Return Type Collector to double in method public get() : double in class org.apache.flink.metrics.prometheus.PrometheusReporter.gaugeFrom | From | To | |
Extract Attribute | 1 | ||
Extract Attribute private metricGroup : FrontMetricGroup<TaskManagerMetricGroup> in class org.apache.flink.metrics.prometheus.PrometheusReporterTest | From | To | |
Rename Attribute | 2 | ||
Rename Attribute prometheusEndpoint : PrometheusEndpoint to httpServer : HTTPServer in class org.apache.flink.metrics.prometheus.PrometheusReporter | From | To | |
Rename Attribute collectorsByMetricName : Map<String,Collector> to collectorsWithCountByMetricName : Map<String,AbstractMap.SimpleImmutableEntry<Collector,Integer>> in class org.apache.flink.metrics.prometheus.PrometheusReporter | From | To | |
Inline Variable | 1 | ||
Inline Variable statistics : HistogramStatistics in method public collect() : List<MetricFamilySamples> from class org.apache.flink.metrics.prometheus.PrometheusReporter.HistogramSummaryProxy | From | To | |
Extract Method | 4 | ||
Extract Method private addSamples(labelValues List<String>, histogram Histogram, samples List<MetricFamilySamples.Sample>) : void extracted from public collect() : List<MetricFamilySamples> in class org.apache.flink.metrics.prometheus.PrometheusReporter.HistogramSummaryProxy | From | To | |
Extract Method private addMetric(metric Metric, dimensionValues List<String>, collector Collector) : void extracted from public notifyOfAddedMetric(metric Metric, metricName String, group MetricGroup) : void in class org.apache.flink.metrics.prometheus.PrometheusReporter | From | To | |
Extract Method private getScopedName(metricName String, group MetricGroup) : String extracted from public notifyOfAddedMetric(metric Metric, metricName String, group MetricGroup) : void in class org.apache.flink.metrics.prometheus.PrometheusReporter | From | To | |
Extract Method private createCollector(metric Metric, dimensionKeys List<String>, dimensionValues List<String>, scopedMetricName String, helpString String) : Collector extracted from public notifyOfAddedMetric(metric Metric, metricName String, group MetricGroup) : void in class org.apache.flink.metrics.prometheus.PrometheusReporter | From | To | |
Change Attribute Type | 3 | ||
Change Attribute Type DEFAULT_PORT : int to DEFAULT_PORT : String in class org.apache.flink.metrics.prometheus.PrometheusReporter | From | To | |
Change Attribute Type prometheusEndpoint : PrometheusEndpoint to httpServer : HTTPServer in class org.apache.flink.metrics.prometheus.PrometheusReporter | From | To | |
Change Attribute Type collectorsByMetricName : Map<String,Collector> to collectorsWithCountByMetricName : Map<String,AbstractMap.SimpleImmutableEntry<Collector,Integer>> in class org.apache.flink.metrics.prometheus.PrometheusReporter | From | To | |
Rename Parameter | 2 | ||
Rename Parameter metricIdentifier : String to helpString : String in method package HistogramSummaryProxy(histogram Histogram, metricName String, helpString String, labelNames List<String>, labelValues List<String>) in class org.apache.flink.metrics.prometheus.PrometheusReporter.HistogramSummaryProxy | From | To | |
Rename Parameter labelNames : List<String> to list : List<String> in method private toArray(list List<String>) : String[] in class org.apache.flink.metrics.prometheus.PrometheusReporter | From | To |