You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by sk...@apache.org on 2019/05/30 20:02:59 UTC
[phoenix] branch 4.x-HBase-1.3 updated: Remove deprecated APIs such
as GlobalMetric#getTotalSum
This is an automated email from the ASF dual-hosted git repository.
skadam pushed a commit to branch 4.x-HBase-1.3
in repository https://gitbox.apache.org/repos/asf/phoenix.git
The following commit(s) were added to refs/heads/4.x-HBase-1.3 by this push:
new d1e2f70 Remove deprecated APIs such as GlobalMetric#getTotalSum
d1e2f70 is described below
commit d1e2f70f54540aba0eb1215cb67bf808f54ee62b
Author: Xinyi <xy...@salesforce.com>
AuthorDate: Wed Apr 24 17:44:07 2019 -0700
Remove deprecated APIs such as GlobalMetric#getTotalSum
---
.../src/main/java/org/apache/phoenix/monitoring/GlobalMetric.java | 6 ------
.../main/java/org/apache/phoenix/monitoring/GlobalMetricImpl.java | 5 -----
2 files changed, 11 deletions(-)
diff --git a/phoenix-core/src/main/java/org/apache/phoenix/monitoring/GlobalMetric.java b/phoenix-core/src/main/java/org/apache/phoenix/monitoring/GlobalMetric.java
index 2a4af86..1538065 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/monitoring/GlobalMetric.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/monitoring/GlobalMetric.java
@@ -29,10 +29,4 @@ public interface GlobalMetric extends Metric {
* @return Number of samples collected since the last {@link #reset()} call.
*/
public long getNumberOfSamples();
-
- /**
- * @return Sum of the values of the metric sampled since the last {@link #reset()} call.
- */
- @Deprecated
- public long getTotalSum();
}
diff --git a/phoenix-core/src/main/java/org/apache/phoenix/monitoring/GlobalMetricImpl.java b/phoenix-core/src/main/java/org/apache/phoenix/monitoring/GlobalMetricImpl.java
index ce692f2..e8b1636 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/monitoring/GlobalMetricImpl.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/monitoring/GlobalMetricImpl.java
@@ -36,11 +36,6 @@ public class GlobalMetricImpl implements GlobalMetric {
}
@Override
- public long getTotalSum() {
- return metric.getValue();
- }
-
- @Override
public void change(long delta) {
metric.change(delta);
numberOfSamples.incrementAndGet();