Package org.apache.pekko.cluster.metrics
Class StandardMetrics.Cpu$
java.lang.Object
org.apache.pekko.cluster.metrics.StandardMetrics.Cpu$
- All Implemented Interfaces:
Serializable
- Enclosing class:
- StandardMetrics
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StandardMetrics.Cpu$Static reference to the singleton instance of this Scala object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(Address address, long timestamp, scala.Option<Object> systemLoadAverage, scala.Option<Object> cpuCombined, scala.Option<Object> cpuStolen, int processors) scala.Option<scala.Tuple6<Address,Object, scala.Option<Object>, scala.Option<Object>, scala.Option<Object>, Object>> unapply(NodeMetrics nodeMetrics) Given a NodeMetrics it returns the Cpu data if the nodeMetrics contains necessary cpu metrics.scala.Option<scala.Tuple6<Address,Object, scala.Option<Object>, scala.Option<Object>, scala.Option<Object>, Object>>
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
Cpu$
public Cpu$()
-
-
Method Details
-
unapply
public scala.Option<scala.Tuple6<Address,Object, unapplyscala.Option<Object>, scala.Option<Object>, scala.Option<Object>, Object>> (NodeMetrics nodeMetrics) Given a NodeMetrics it returns the Cpu data if the nodeMetrics contains necessary cpu metrics.- Returns:
- if possible a tuple matching the Cpu constructor parameters
-
apply
public StandardMetrics.Cpu apply(Address address, long timestamp, scala.Option<Object> systemLoadAverage, scala.Option<Object> cpuCombined, scala.Option<Object> cpuStolen, int processors) - Parameters:
address-pekko.actor.Addressof the node the metrics are gathered attimestamp- the time of sampling, in milliseconds since midnight, January 1, 1970 UTCsystemLoadAverage- 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.cpuCombined- combined CPU sum of User + Sys + Nice + Wait, in percentage ([0.0 - 1.0]. This metric can describe the amount of time the CPU spent executing code during n-interval and how much more it could theoretically.cpuStolen- stolen CPU time, in percentage ([0.0 - 1.0].processors- the number of available processors
-
unapply
-