Class CpuInfo

java.lang.Object
io.jenkins.plugins.specsmonitor.CpuInfo
All Implemented Interfaces:
Serializable

@ExportedBean public class CpuInfo extends Object implements Serializable
CPU model name and number of hardware threads (logical processors) of a node.
See Also:
  • Constructor Details

    • CpuInfo

      public CpuInfo(String name, int threads)
    • CpuInfo

      public CpuInfo(String name, int threads, int maxMhz)
  • Method Details

    • getName

      @Exported public String getName()
    • getMaxMhz

      @Exported public int getMaxMhz()
      Clock speed in MHz, or 0 if unknown. This is the maximum frequency where the node reports one, otherwise the nominal or current frequency.
    • getClockDisplay

      public String getClockDisplay()
      The clock speed in GHz such as "3.20 GHz", or "N/A" if unknown.
    • getNameWithClock

      public String getNameWithClock()
      The full name with the clock speed appended in the style of Intel names ("@ 3.20GHz"), unless the name already contains one or the speed is unknown.
    • getShortName

      @Exported public String getShortName()
    • getThreads

      @Exported public int getThreads()
      Number of logical processors (hardware threads) available to the JVM on the node.
    • getScore

      @Exported public String getScore()
    • toString

      public String toString()
      Overrides:
      toString in class Object