Package akka.cluster.metrics
Class StandardMetrics
- java.lang.Object
-
- akka.cluster.metrics.StandardMetrics
-
public class StandardMetrics extends java.lang.ObjectSum of User + Sys + Nice + Wait. See `org.hyperic.sigar.CpuPerc`
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStandardMetrics.Cpuparam: addressAddressof the node the metrics are gathered at param: timestamp the time of sampling, in milliseconds since midnight, January 1, 1970 UTC param: systemLoadAverage OS-specific average load on the CPUs in the system, for the past 1 minute, The system is possibly nearing a bottleneck if the system load average is nearing number of cpus/cores.static classStandardMetrics.Cpu$static classStandardMetrics.HeapMemoryThe amount of used and committed memory will always be <= max if max is defined.static classStandardMetrics.HeapMemory$Given a NodeMetrics it returns the HeapMemory data if the nodeMetrics contains necessary heap metrics.
-
Constructor Summary
Constructors Constructor Description StandardMetrics()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringCpuCombined()Sum of User + Sys + Nice + Wait.static java.lang.StringCpuIdle()Amount of CPU time left after combined and stolen are removed.static java.lang.StringCpuStolen()The amount of CPU 'stolen' from this virtual machine by the hypervisor for other tasks (such as running another virtual machine).static StandardMetrics.CpuextractCpu(NodeMetrics nodeMetrics)static StandardMetrics.HeapMemoryextractHeapMemory(NodeMetrics nodeMetrics)static java.lang.StringHeapMemoryCommitted()static java.lang.StringHeapMemoryMax()static java.lang.StringHeapMemoryUsed()static java.lang.StringProcessors()static java.lang.StringSystemLoadAverage()
-
-
-
Method Detail
-
HeapMemoryUsed
public static final java.lang.String HeapMemoryUsed()
-
HeapMemoryCommitted
public static final java.lang.String HeapMemoryCommitted()
-
HeapMemoryMax
public static final java.lang.String HeapMemoryMax()
-
SystemLoadAverage
public static final java.lang.String SystemLoadAverage()
-
Processors
public static final java.lang.String Processors()
-
CpuCombined
public static final java.lang.String CpuCombined()
Sum of User + Sys + Nice + Wait. See `org.hyperic.sigar.CpuPerc`
-
CpuStolen
public static final java.lang.String CpuStolen()
The amount of CPU 'stolen' from this virtual machine by the hypervisor for other tasks (such as running another virtual machine).
-
CpuIdle
public static final java.lang.String CpuIdle()
Amount of CPU time left after combined and stolen are removed.
-
extractHeapMemory
public static StandardMetrics.HeapMemory extractHeapMemory(NodeMetrics nodeMetrics)
-
extractCpu
public static StandardMetrics.Cpu extractCpu(NodeMetrics nodeMetrics)
-
-