|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.system.MeasuredResource
org.rioproject.system.measurable.cpu.CpuUtilization
public class CpuUtilization
Measured system CPU utilization
| Constructor Summary | |
|---|---|
CpuUtilization(String identifier,
double system,
double user,
double[] load,
int availableProcessors,
ThresholdValues tVals)
Construct a CpuUtilization with parameters |
|
CpuUtilization(String identifier,
double total,
ThresholdValues tVals)
Construct a CpuUtilization with parameters |
|
| Method Summary | |
|---|---|
int |
getAvailableProcessors()
Get the number of processors on the machine |
double[] |
getLoad()
Get the system load |
double |
getSystem()
Get the cpu kernel usage |
double |
getTotal()
Get the cpu utilization |
double |
getUser()
Get the cpu user usage |
String |
toString()
|
| Methods inherited from class org.rioproject.system.MeasuredResource |
|---|
equals, evaluate, getIdentifier, getThresholdValues, getValue, hashCode, thresholdCrossed |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CpuUtilization(String identifier,
double total,
ThresholdValues tVals)
identifier - Identifier for the CpuUtilizationtotal - The total system cpu utilizationtVals - ThresholdValues for the CpuUtilization
public CpuUtilization(String identifier,
double system,
double user,
double[] load,
int availableProcessors,
ThresholdValues tVals)
identifier - Identifier for the CpuUtilizationsystem - The cpu kernel usageuser - The cpu user usageload - The system load averageavailableProcessors - The number of available processors on the machinetVals - ThresholdValues for the CpuUtilization| Method Detail |
|---|
public double getSystem()
public double getUser()
public double getTotal()
public double[] getLoad()
public int getAvailableProcessors()
public String toString()
toString in class MeasuredResource
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||