public class CpuInfo
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
CpuInfo() |
Modifier and Type | Method and Description |
---|---|
void |
gather(Sigar sigar) |
long |
getCacheSize()
Get the CPU cache size.
|
int |
getCoresPerSocket()
Get the Number of CPU cores per CPU socket.
|
int |
getMhz()
Get the Current CPU speed.
|
int |
getMhzMax()
Get the Maximum CPU speed.
|
int |
getMhzMin()
Get the Maximum CPU speed.
|
java.lang.String |
getModel()
Get the CPU model.
|
int |
getTotalCores()
Get the Total CPU cores (logical).
|
int |
getTotalSockets()
Get the Total CPU sockets (physical).
|
java.lang.String |
getVendor()
Get the CPU vendor id.
|
java.util.Map |
toMap() |
java.lang.String |
toString() |
public void gather(Sigar sigar) throws SigarException
SigarException
public java.lang.String getVendor()
Supported Platforms: All.
System equivalent commands:
lsattr -El proc0
cat /proc/cpuinfo
psrinfo -v
public java.lang.String getModel()
Supported Platforms: All.
System equivalent commands:
lsattr -El proc0
cat /proc/cpuinfo
psrinfo -v
public int getMhz()
Supported Platforms: All.
System equivalent commands:
lsattr -El proc0
cat /proc/cpuinfo
psrinfo -v
public int getMhzMax()
Supported Platforms: Darwin, Linux.
System equivalent commands:
lsattr -El proc0
cat /proc/cpuinfo
psrinfo -v
public int getMhzMin()
Supported Platforms: Darwin, Linux.
System equivalent commands:
lsattr -El proc0
cat /proc/cpuinfo
psrinfo -v
public long getCacheSize()
Supported Platforms: AIX, Darwin, Linux.
System equivalent commands:
lsattr -El proc0
cat /proc/cpuinfo
psrinfo -v
public int getTotalCores()
Supported Platforms: Undocumented.
System equivalent commands:
lsattr -El proc0
cat /proc/cpuinfo
psrinfo -v
public int getTotalSockets()
Supported Platforms: Undocumented.
System equivalent commands:
lsattr -El proc0
cat /proc/cpuinfo
psrinfo -v
public int getCoresPerSocket()
Supported Platforms: Undocumented.
System equivalent commands:
lsattr -El proc0
cat /proc/cpuinfo
psrinfo -v
public java.util.Map toMap()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright ? 2004-2011 Hyperic. All Rights Reserved.