io.opentelemetry.instrumentation.jmx.engine.MetricConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of opentelemetry-jmx-metrics Show documentation
Show all versions of opentelemetry-jmx-metrics Show documentation
Instrumentation of Java libraries using OpenTelemetry.
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.instrumentation.jmx.engine;
import java.util.ArrayList;
import java.util.Collection;
/**
* A class responsible for maintaining the current configuration for JMX metrics to be collected.
*/
public class MetricConfiguration {
private final Collection currentSet = new ArrayList<>();
public MetricConfiguration() {}
public boolean isEmpty() {
return currentSet.isEmpty();
}
public void addMetricDef(MetricDef def) {
currentSet.add(def);
}
Collection getMetricDefs() {
return currentSet;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy