|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
systeminformationmonitor.system.AbstractSystemUpdater
systeminformationmonitor.system.CpuInformation
public class CpuInformation
Singleton class which is able to retrieve Cpu information specs.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class systeminformationmonitor.system.AbstractSystemUpdater |
|---|
sigar, threadLock |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Method Summary | |
|---|---|
void |
addCpuMonitor(Monitor monitor)
Adds a monitor to be updated with the cpuInformation is updated. |
int |
getCpuAverageUsage()
Returns he average Cpu usage of all cpus. |
static java.lang.String |
getCpuCache()
Returns the cpu cache. |
static int |
getCpuCores()
Returns the number of Cpu Cores. |
static int |
getCpuCoresPerSocket()
Returns the number of cpu cores per socket. |
static java.lang.String |
getCpuMhz()
Returns the cpu mhz. |
static java.lang.String |
getCpuModel()
Returns the cpu model. |
int |
getCpuPercentage()
Returns the current overall Cpu usage. |
static java.lang.String |
getCpuVendor()
Returns the cpu vendor. |
int |
getHighestUsage()
Returns the highest Cpu usage of all cpus. |
java.lang.String |
getIdleTime()
Returns the overall Idle time of the cpus. |
static CpuInformation |
getInstance()
Returns the singleton instance of CpuInformation. |
java.lang.String |
getIrqTime()
Returns the overall IRQ time of the cpus. |
java.lang.String |
getSoftIrqTime()
Returns the overall Soft IRQ time of the cpus. |
java.lang.String |
getSysTime()
Returns the overall Sys time of the cpus. |
java.lang.String |
getUserTime()
Returns the overall User time of the cpus. |
java.lang.String |
getWaitTime()
Returns the current overall Wait Time of the cpus. |
void |
update()
Update the UI |
| Methods inherited from class systeminformationmonitor.system.AbstractSystemUpdater |
|---|
done, prepare, run |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public void addCpuMonitor(Monitor monitor)
monitor - Monitor to be updated. The monitor's initialize is called
when it is added to the CpuInformation.public static CpuInformation getInstance()
public int getCpuAverageUsage()
public int getHighestUsage()
public int getCpuPercentage()
public java.lang.String getWaitTime()
public java.lang.String getUserTime()
public java.lang.String getSysTime()
public java.lang.String getSoftIrqTime()
public java.lang.String getIrqTime()
public java.lang.String getIdleTime()
public static java.lang.String getCpuModel()
public static int getCpuCores()
public static int getCpuCoresPerSocket()
public static java.lang.String getCpuVendor()
public static java.lang.String getCpuCache()
public static java.lang.String getCpuMhz()
public void update()
AbstractSystemUpdater
update in class AbstractSystemUpdater
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||