akka.cluster
Class StandardMetrics$
java.lang.Object
akka.cluster.StandardMetrics$
public class StandardMetrics$
- extends java.lang.Object
Definitions of the built-in standard metrics.
The following extractors and data structures makes it easy to consume the
NodeMetrics
in for example load balancers.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MODULE$
public static final StandardMetrics$ MODULE$
- Static reference to the singleton instance of this Scala object.
StandardMetrics$
public StandardMetrics$()
HeapMemoryUsed
public final java.lang.String HeapMemoryUsed()
HeapMemoryCommitted
public final java.lang.String HeapMemoryCommitted()
HeapMemoryMax
public final java.lang.String HeapMemoryMax()
SystemLoadAverage
public final java.lang.String SystemLoadAverage()
Processors
public final java.lang.String Processors()
CpuCombined
public final java.lang.String CpuCombined()
extractHeapMemory
public StandardMetrics.HeapMemory extractHeapMemory(NodeMetrics nodeMetrics)
- Java API to extract HeapMemory data from nodeMetrics, if the nodeMetrics
contains necessary heap metrics, otherwise it returns null.
extractCpu
public StandardMetrics.Cpu extractCpu(NodeMetrics nodeMetrics)
- Java API to extract Cpu data from nodeMetrics, if the nodeMetrics
contains necessary cpu metrics, otherwise it returns null.