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
SigarExceptionpublic java.lang.String getVendor()
Supported Platforms: All.
System equivalent commands:
lsattr -El proc0cat /proc/cpuinfopsrinfo -vpublic java.lang.String getModel()
Supported Platforms: All.
System equivalent commands:
lsattr -El proc0cat /proc/cpuinfopsrinfo -vpublic int getMhz()
Supported Platforms: All.
System equivalent commands:
lsattr -El proc0cat /proc/cpuinfopsrinfo -vpublic int getMhzMax()
Supported Platforms: Darwin, Linux.
System equivalent commands:
lsattr -El proc0cat /proc/cpuinfopsrinfo -vpublic int getMhzMin()
Supported Platforms: Darwin, Linux.
System equivalent commands:
lsattr -El proc0cat /proc/cpuinfopsrinfo -vpublic long getCacheSize()
Supported Platforms: AIX, Darwin, Linux.
System equivalent commands:
lsattr -El proc0cat /proc/cpuinfopsrinfo -vpublic int getTotalCores()
Supported Platforms: Undocumented.
System equivalent commands:
lsattr -El proc0cat /proc/cpuinfopsrinfo -vpublic int getTotalSockets()
Supported Platforms: Undocumented.
System equivalent commands:
lsattr -El proc0cat /proc/cpuinfopsrinfo -vpublic int getCoresPerSocket()
Supported Platforms: Undocumented.
System equivalent commands:
lsattr -El proc0cat /proc/cpuinfopsrinfo -vpublic java.util.Map toMap()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright ? 2004-2011 Hyperic. All Rights Reserved.