From 7320c4329171a31fcc8afe9fba846c5c24cf6074 Mon Sep 17 00:00:00 2001 From: cleverchuk Date: Tue, 29 Oct 2024 15:41:25 -0400 Subject: [PATCH] NH-93485: add method to remove collector --- .../java/com/solarwinds/joboe/metrics/MetricsCollector.java | 4 ++++ pom.xml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/metrics/src/main/java/com/solarwinds/joboe/metrics/MetricsCollector.java b/metrics/src/main/java/com/solarwinds/joboe/metrics/MetricsCollector.java index 23824f63..d0616fb8 100644 --- a/metrics/src/main/java/com/solarwinds/joboe/metrics/MetricsCollector.java +++ b/metrics/src/main/java/com/solarwinds/joboe/metrics/MetricsCollector.java @@ -57,6 +57,10 @@ public void addCollector(MetricsCategory category, AbstractMetricsEntryCollector collectors.put(category, collector); } + public void removeCollector(MetricsCategory category) { + collectors.remove(category); + } + @Override protected Map>> collect() throws Exception { Map>>> collectedFutures = new HashMap>>>(); diff --git a/pom.xml b/pom.xml index c7b9a135..2beaf844 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ joboe - 10.0.13-SNAPSHOT + 10.0.14-SNAPSHOT UTF-8 ${git.commit.time}