org.hyperic.sigar
Class CpuInfo

java.lang.Object
  extended byorg.hyperic.sigar.CpuInfo
All Implemented Interfaces:
java.io.Serializable

public class CpuInfo
extends java.lang.Object
implements java.io.Serializable

CpuInfo sigar class.

See Also:
Serialized Form

Constructor Summary
CpuInfo()
           
 
Method Summary
 void gather(Sigar sigar)
           
 long getCacheSize()
          Get the CPU cache size.
 int getMhz()
          Get the CPU speed.
 java.lang.String getModel()
          Get the CPU model.
 java.lang.String getVendor()
          Get the CPU vendor id.
 java.util.Map toMap()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CpuInfo

public CpuInfo()
Method Detail

gather

public void gather(Sigar sigar)
            throws SigarException
Throws:
SigarException

getVendor

public java.lang.String getVendor()
Get the CPU vendor id.

Supported Platforms: AIX, FreeBSD, Linux, HPUX, Solaris, Win32.

System equivalent commands:

Returns:
CPU vendor id

getModel

public java.lang.String getModel()
Get the CPU model.

Supported Platforms: AIX, FreeBSD, Linux, HPUX, Solaris, Win32.

System equivalent commands:

Returns:
CPU model

getMhz

public int getMhz()
Get the CPU speed.

Supported Platforms: AIX, FreeBSD, HPUX, Linux, Solaris, Win32.

System equivalent commands:

Returns:
CPU speed

getCacheSize

public long getCacheSize()
Get the CPU cache size.

Supported Platforms: AIX, Linux.

System equivalent commands:

Returns:
CPU cache size

toMap

public java.util.Map toMap()

toString

public java.lang.String toString()


Copyright © 2004-2006 Hyperic. All Rights Reserved.