Skip to content

Commit

Permalink
Merge pull request #6 from solarwinds/cc/NH-93485
Browse files Browse the repository at this point in the history
NH-93485: add method to remove collector
  • Loading branch information
cleverchuk authored Oct 30, 2024
2 parents ca16fa6 + 7320c43 commit d834d43
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<MetricsCategory, List<? extends MetricsEntry<?>>> collect() throws Exception {
Map<MetricsCategory, Future<List<? extends MetricsEntry<?>>>> collectedFutures = new HashMap<MetricsCategory, Future<List<? extends MetricsEntry<?>>>>();
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<name>joboe</name>

<properties>
<revision>10.0.13-SNAPSHOT</revision>
<revision>10.0.14-SNAPSHOT</revision>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.build.outputTimestamp>${git.commit.time}</project.build.outputTimestamp>
</properties>
Expand Down

0 comments on commit d834d43

Please sign in to comment.