Package io.smallrye.metrics
Class JmxWorker
- java.lang.Object
-
- io.smallrye.metrics.JmxWorker
-
public class JmxWorker extends Object
- Author:
- hrupp
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexpandMultiValueEntries(List<ExtendedMetadataAndTags> entries)We need to expand entries that are marked with the multi flag into the actual MBeans.NumbergetValue(String mbeanExpression)Read a value from the MBeanServerstatic JmxWorkerinstance()
-
-
-
Method Detail
-
instance
public static JmxWorker instance()
-
getValue
public Number getValue(String mbeanExpression)
Read a value from the MBeanServer- Parameters:
mbeanExpression- The expression to look for- Returns:
- The value of the Mbean attribute
-
expandMultiValueEntries
public void expandMultiValueEntries(List<ExtendedMetadataAndTags> entries)
We need to expand entries that are marked with the multi flag into the actual MBeans. This is done by replacing a placeholder of %s in the name and MBean name with the real Mbean key-value.- Parameters:
entries- List of entries
-
-