Class MetricRegistryMBean

    • Constructor Detail

      • MetricRegistryMBean

        public MetricRegistryMBean​(ReadOnlyMetricRegistry mreg)
        Parameters:
        mreg - Metric registry.
    • Method Detail

      • getAttribute

        public Object getAttribute​(String attr)
      • getMBeanInfo

        public MBeanInfo getMBeanInfo()
      • searchHistogram

        public static Long searchHistogram​(String name,
                                           ReadOnlyMetricRegistry mreg)
        Parse attribute name for a histogram and search it's value.
        Parameters:
        name - Attribute name.
        mreg - Metric registry to search histogram in.
        Returns:
        Specific bucket value or null if not found.
        See Also:
        MetricUtils.histogramBucketNames(HistogramMetric)