akka.cluster
Class StandardMetrics$

java.lang.Object
  extended by 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.


Field Summary
static StandardMetrics$ MODULE$
          Static reference to the singleton instance of this Scala object.
 
Constructor Summary
StandardMetrics$()
           
 
Method Summary
 java.lang.String CpuCombined()
           
 StandardMetrics.Cpu extractCpu(NodeMetrics nodeMetrics)
          Java API to extract Cpu data from nodeMetrics, if the nodeMetrics contains necessary cpu metrics, otherwise it returns null.
 StandardMetrics.HeapMemory extractHeapMemory(NodeMetrics nodeMetrics)
          Java API to extract HeapMemory data from nodeMetrics, if the nodeMetrics contains necessary heap metrics, otherwise it returns null.
 java.lang.String HeapMemoryCommitted()
           
 java.lang.String HeapMemoryMax()
           
 java.lang.String HeapMemoryUsed()
           
 java.lang.String Processors()
           
 java.lang.String SystemLoadAverage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODULE$

public static final StandardMetrics$ MODULE$
Static reference to the singleton instance of this Scala object.

Constructor Detail

StandardMetrics$

public StandardMetrics$()
Method Detail

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.