Package org.apache.pekko.cluster.metrics
Interface MetricNumericConverter
public interface MetricNumericConverter
INTERNAL API
Encapsulates evaluation of validity of metric values, conversion of an actual metric value to
a pekko.cluster.metrics.Metric for consumption by subscribed cluster entities.
-
Method Summary
Modifier and TypeMethodDescriptionconvertNumber(Object from) May involve rounding or truncation.booleanAn defined value is neither negative nor NaN/Infinite: JMX system load average and max heap can be 'undefined' for certain OS, in which case a -1 is returned SIGAR combined CPU can occasionally return a NaN or Infinite (known bug)
-
Method Details
-
convertNumber
May involve rounding or truncation. -
defined
An defined value is neither negative nor NaN/Infinite:- JMX system load average and max heap can be 'undefined' for certain OS, in which case a -1 is returned
- SIGAR combined CPU can occasionally return a NaN or Infinite (known bug)
-