Class StandardMetrics.Cpu$

java.lang.Object
org.apache.pekko.cluster.metrics.StandardMetrics.Cpu$
All Implemented Interfaces:
Serializable
Enclosing class:
StandardMetrics

public static class StandardMetrics.Cpu$ extends Object implements Serializable
See Also:
  • Field Details

    • MODULE$

      public static final StandardMetrics.Cpu$ 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,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.
      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.Address of the node the metrics are gathered at
      timestamp - the time of sampling, in milliseconds since midnight, January 1, 1970 UTC
      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.
      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

      public scala.Option<scala.Tuple6<Address,Object,scala.Option<Object>,scala.Option<Object>,scala.Option<Object>,Object>> unapply(StandardMetrics.Cpu x$0)