public class CpuDataImpl extends com.ibm.java.diagnostics.healthcenter.api.impl.HealthCenterDataImpl implements CpuData
PROCESSUSEDATA, SYSTEMUSEDATA| Constructor and Description |
|---|
CpuDataImpl(Data data) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCpuListener(CpuEventListener listener)
Add a listener for notification of when CPU events occur
|
double |
getMaxProcessUse()
Gets the maximum percentage value for process CPU use.
|
double |
getMaxSystemUse()
Gets the maximum percentage value for system CPU use.
|
double |
getMeanProcessUse()
Gets the mean percentage value for process CPU use.
|
double |
getMeanSystemUse()
Gets the mean percentage value for system CPU use.
|
double |
getMinProcessUse()
Gets the minimum percentage value for process CPU use.
|
double |
getMinSystemUse()
Gets the minimum percentage value for system CPU use.
|
CpuInfo[] |
getProcessUse()
Gets the data associated with the process CPU use.
|
CpuInfo[] |
getSystemUse()
Gets the data associated with the system CPU use.
|
void |
startNotifying()
Starts a thread which checks for changes in the data every 2000 milliseconds and sends notifications
if an update has occurred.
|
void |
startNotifying(long delay)
Starts a thread which checks for changes in the data and sends notifications
if an update has occurred.
|
getAllRecommendations, getCriticalRecommendations, getHealthyRecommendations, getInformationalRecommendations, getMaxData, getMeanData, getMinData, getWarningRecommendationsaddNotificationListener, getNotificationInfo, removeNotificationListener, removeNotificationListener, sendNotificationequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAllRecommendations, getCriticalRecommendations, getHealthyRecommendations, getInformationalRecommendations, getWarningRecommendationspublic CpuInfo[] getProcessUse()
CpuDatagetProcessUse in interface CpuDatapublic CpuInfo[] getSystemUse()
CpuDatagetSystemUse in interface CpuDatapublic void startNotifying()
HealthCenterDataNotificationListener
needs to be added to the object the thread is being started from.startNotifying in interface HealthCenterDatapublic void startNotifying(long delay)
HealthCenterDataNotificationListener
needs to be added to the object the thread is being started from.startNotifying in interface HealthCenterDatadelay - The number of milliseconds between each update. The default is
2000 milliseconds and anything below this will not be accepted.public double getMaxSystemUse()
CpuDatagetMaxSystemUse in interface CpuDatapublic double getMeanSystemUse()
CpuDatagetMeanSystemUse in interface CpuDatapublic double getMinSystemUse()
CpuDatagetMinSystemUse in interface CpuDatapublic double getMaxProcessUse()
CpuDatagetMaxProcessUse in interface CpuDatapublic double getMeanProcessUse()
CpuDatagetMeanProcessUse in interface CpuDatapublic double getMinProcessUse()
CpuDatagetMinProcessUse in interface CpuDatapublic void addCpuListener(CpuEventListener listener)
CpuDataaddCpuListener in interface CpuData