|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.watch.Calculable
org.rioproject.system.measurable.cpu.CalculableCPU
public class CalculableCPU
A Calculable used to collect CPU system utilization
| Constructor Summary | |
|---|---|
CalculableCPU(String id,
CpuUtilization cpuUtilization,
long when)
Creates new CalculableCPU |
|
CalculableCPU(String id,
double value,
long when)
Creates new CalculableCPU |
|
| Method Summary | |
|---|---|
String |
getArchiveRecord()
Gets an archival representation for this Calculable |
CpuUtilization |
getCpuUtilization()
Get the CpuUtilization |
double |
getSystem()
Get the cpu kernel usage |
double |
getTotal()
Get the cpu utilization |
double |
getUser()
Get the cpu user usage |
String |
toString()
Returns a string representation of the object. |
| Methods inherited from class org.rioproject.watch.Calculable |
|---|
equals, getDate, getDetail, getId, getValue, getWhen, hashCode, setDetail, setId, setValue, setWhen |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CalculableCPU(String id,
double value,
long when)
id - the identifier for this Calculable recordvalue - utilizatiion to recordwhen - the time when the recorded value was captured
public CalculableCPU(String id,
CpuUtilization cpuUtilization,
long when)
id - the identifier for this Calculable recordcpuUtilization - holds CPU utilizationwhen - the time when the recorded value was captured| Method Detail |
|---|
public double getSystem()
public double getUser()
public double getTotal()
public CpuUtilization getCpuUtilization()
public String toString()
Calculable
toString in class Calculablepublic String getArchiveRecord()
getArchiveRecord in class Calculable
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||