Class CpuEventObject
java.lang.Object
com.ibm.java.diagnostics.healthcenter.api.cpu.impl.CpuEventObject
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongdoubledouble
-
Constructor Details
-
CpuEventObject
public CpuEventObject(long eventTime, double systemCPU, double processCPU)
-
-
Method Details
-
getEventTime
public long getEventTime()- Specified by:
getEventTimein interfaceBaseEvent- Returns:
- the time the event took place in milliseconds since epoch
-
getSystemUse
public double getSystemUse()- Specified by:
getSystemUsein interfaceCpuEvent- Returns:
- percentage of the overall CPU system use (-1 if not available)
-
getProcessUse
public double getProcessUse()- Specified by:
getProcessUsein interfaceCpuEvent- Returns:
- percentage of the overall processor use (-1 if not available)
-